mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-11 12:57:10 +08:00
refactor: 适配系统参数 API 新的使用方式
This commit is contained in:
@@ -125,7 +125,7 @@ const handleCancel = () => {
|
||||
}
|
||||
|
||||
const queryForm = {
|
||||
code: Object.keys(mailConfig.value)
|
||||
category: 'MAIL'
|
||||
}
|
||||
// 查询列表数据
|
||||
const getDataList = async () => {
|
||||
@@ -143,7 +143,7 @@ const handleSave = async () => {
|
||||
if (isInvalid) return false
|
||||
await updateOption(
|
||||
Object.entries(form).map(([key, value]) => {
|
||||
return { code: key, value }
|
||||
return { id: mailConfig.value[key].id, code: key, value }
|
||||
})
|
||||
)
|
||||
await getDataList()
|
||||
|
||||
@@ -160,7 +160,7 @@ const handleCancel = () => {
|
||||
}
|
||||
|
||||
const queryForm = {
|
||||
code: Object.keys(securityConfig.value)
|
||||
category: 'PASSWORD'
|
||||
}
|
||||
// 查询列表数据
|
||||
const getDataList = async () => {
|
||||
@@ -178,7 +178,7 @@ const handleSave = async () => {
|
||||
if (isInvalid) return false
|
||||
await updateOption(
|
||||
Object.entries(form).map(([key, value]) => {
|
||||
return { code: key, value }
|
||||
return { id: securityConfig.value[key].id, code: key, value }
|
||||
})
|
||||
)
|
||||
await getDataList()
|
||||
|
||||
Reference in New Issue
Block a user