mirror of https://gitee.com/xiaonuobase/snowy
【更新】补充一些API相关遗漏的改进
parent
c5ae8971e7
commit
f04cfc3da2
|
@ -223,7 +223,7 @@
|
|||
submitLoading.value = true
|
||||
const formDataParam = parameterChanges(cloneDeep(formData.value))
|
||||
mobileMenuApi
|
||||
.mobileMenuSubmitForm(formDataParam, !formDataParam.id)
|
||||
.mobileMenuSubmitForm(formDataParam, formDataParam.id)
|
||||
.then(() => {
|
||||
onClose()
|
||||
emit('successful')
|
||||
|
|
|
@ -208,7 +208,7 @@
|
|||
.then(() => {
|
||||
const param = parameterChanges(formData.value)
|
||||
submitLoading.value = true
|
||||
menuApi.submitForm(param, !!param.id).then(() => {
|
||||
menuApi.submitForm(param, param.id).then(() => {
|
||||
onClose()
|
||||
emit('successful')
|
||||
})
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
const param = parameterChanges(formData.value)
|
||||
submitLoading.value = true
|
||||
spaApi
|
||||
.submitForm(param, !param.id)
|
||||
.submitForm(param, param.id)
|
||||
.then(() => {
|
||||
visible = false
|
||||
emit('successful')
|
||||
|
|
Loading…
Reference in New Issue