mirror of https://gitee.com/xiaonuobase/snowy
【更新】补充一些API相关遗漏的改进
parent
c5ae8971e7
commit
f04cfc3da2
|
@ -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')
|
||||||
|
|
|
@ -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')
|
||||||
})
|
})
|
||||||
|
|
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue