fix: 修改编辑配置对接信息
This commit is contained in:
@@ -1023,6 +1023,7 @@ const submitSettingForm = async () => {
|
|||||||
await settingFormRef.value.validate()
|
await settingFormRef.value.validate()
|
||||||
|
|
||||||
const submitData = {
|
const submitData = {
|
||||||
|
id: settingForm.id,
|
||||||
name: settingForm.name,
|
name: settingForm.name,
|
||||||
value: settingForm.value,
|
value: settingForm.value,
|
||||||
type: settingForm.type,
|
type: settingForm.type,
|
||||||
@@ -1032,7 +1033,7 @@ const submitSettingForm = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const res = settingForm.id
|
const res = settingForm.id
|
||||||
? await updateSetting(settingForm.id, submitData)
|
? await updateSetting(submitData)
|
||||||
: await createSetting(submitData)
|
: await createSetting(submitData)
|
||||||
|
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user