From c350fc466e60834aa9c97ffe2916a7d7a7d48608 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 6 May 2024 14:43:52 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20id=3D0=E5=AF=BC=E8=87=B4sqlserver?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8F=9C=E5=8D=95=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dhb52 --- src/views/system/menu/MenuForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/menu/MenuForm.vue b/src/views/system/menu/MenuForm.vue index 7eaf6ab6..2b4a90d1 100644 --- a/src/views/system/menu/MenuForm.vue +++ b/src/views/system/menu/MenuForm.vue @@ -130,7 +130,7 @@ const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ - id: 0, + id: undefined, name: '', permission: '', type: SystemMenuTypeEnum.DIR, @@ -231,7 +231,7 @@ const getTree = async () => { /** 重置表单 */ const resetForm = () => { formData.value = { - id: 0, + id: undefined, name: '', permission: '', type: SystemMenuTypeEnum.DIR,