【更新】补充一些API相关遗漏的改进

pull/129/head
小诺 2023-07-08 00:44:25 +08:00 committed by 俞宝山
parent c5ae8971e7
commit f04cfc3da2
3 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@
submitLoading.value = true submitLoading.value = true
const formDataParam = parameterChanges(cloneDeep(formData.value)) const formDataParam = parameterChanges(cloneDeep(formData.value))
mobileMenuApi mobileMenuApi
.mobileMenuSubmitForm(formDataParam, !formDataParam.id) .mobileMenuSubmitForm(formDataParam, formDataParam.id)
.then(() => { .then(() => {
onClose() onClose()
emit('successful') emit('successful')

View File

@ -208,7 +208,7 @@
.then(() => { .then(() => {
const param = parameterChanges(formData.value) const param = parameterChanges(formData.value)
submitLoading.value = true submitLoading.value = true
menuApi.submitForm(param, !!param.id).then(() => { menuApi.submitForm(param, param.id).then(() => {
onClose() onClose()
emit('successful') emit('successful')
}) })

View File

@ -162,7 +162,7 @@
const param = parameterChanges(formData.value) const param = parameterChanges(formData.value)
submitLoading.value = true submitLoading.value = true
spaApi spaApi
.submitForm(param, !param.id) .submitForm(param, param.id)
.then(() => { .then(() => {
visible = false visible = false
emit('successful') emit('successful')