diff --git a/snowy-admin-web/src/views/mobile/resource/menu/form.vue b/snowy-admin-web/src/views/mobile/resource/menu/form.vue index 837bb960..0f6ba8ba 100644 --- a/snowy-admin-web/src/views/mobile/resource/menu/form.vue +++ b/snowy-admin-web/src/views/mobile/resource/menu/form.vue @@ -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') diff --git a/snowy-admin-web/src/views/sys/resource/menu/form.vue b/snowy-admin-web/src/views/sys/resource/menu/form.vue index 1352fd76..eb4b4ed3 100644 --- a/snowy-admin-web/src/views/sys/resource/menu/form.vue +++ b/snowy-admin-web/src/views/sys/resource/menu/form.vue @@ -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') }) diff --git a/snowy-admin-web/src/views/sys/resource/spa/form.vue b/snowy-admin-web/src/views/sys/resource/spa/form.vue index 3deb293c..b8ef7720 100644 --- a/snowy-admin-web/src/views/sys/resource/spa/form.vue +++ b/snowy-admin-web/src/views/sys/resource/spa/form.vue @@ -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')