From b89f1671c31750ec870d0257f8378aae8bdae0bc Mon Sep 17 00:00:00 2001 From: 1638245306 <1638245306@qq.com> Date: Thu, 19 Jun 2025 22:54:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(system):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=8F=9C=E5=8D=95=E6=9C=AA=E9=80=89=E6=8B=A9=E7=88=B6?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=97=B6=E7=9A=84=E6=8F=90=E4=BA=A4=E9=97=AE?= =?UTF-8?q?=E9=A2=98-=20=E5=9C=A8=E6=8F=90=E4=BA=A4=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=9C=AA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=88=B6=E8=8F=9C=E5=8D=95=EF=BC=8C=E5=B0=86?= =?UTF-8?q?=20parent=20=E5=AD=97=E6=AE=B5=E8=AE=BE=E7=BD=AE=E4=B8=BA=20nul?= =?UTF-8?q?l=20-=E7=A1=AE=E4=BF=9D=E5=9C=A8=E6=9B=B4=E6=96=B0=E6=88=96?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8F=9C=E5=8D=95=E6=97=B6=EF=BC=8C=E7=88=B6?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=AD=97=E6=AE=B5=E7=9A=84=E5=80=BC=E6=98=AF?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/menu/components/MenuFormCom/index.vue | 3 +++ 1 file changed, 3 insertions(+) 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);