diff --git a/web/src/views/system/menu/components/MenuFormCom/index.vue b/web/src/views/system/menu/components/MenuFormCom/index.vue index 5f64d5a..1bcc61f 100644 --- a/web/src/views/system/menu/components/MenuFormCom/index.vue +++ b/web/src/views/system/menu/components/MenuFormCom/index.vue @@ -254,6 +254,9 @@ const handleSubmit = () => { let res; menuBtnLoading.value = true; if (menuFormData.id) { + if (menuFormData.parent == undefined) { + menuFormData.parent = null + } res = await UpdateObj(menuFormData); } else { res = await AddObj(menuFormData);