fix: 🐛 修复编辑后未清空id再新增菜单覆盖的问题

This commit is contained in:
hxr
2024-06-06 01:00:43 +08:00
parent ef907baa14
commit 0e78eeb750

View File

@@ -431,7 +431,7 @@ const initialMenuFormData = ref<MenuForm>({
parentId: 0,
visible: 1,
sort: 1,
type: MenuTypeEnum.MENU, // 默认菜单
type: MenuTypeEnum.MENU, // 默认菜单
alwaysShow: 0,
keepAlive: 1,
params: [],
@@ -568,6 +568,7 @@ function closeDialog() {
dialog.visible = false;
menuFormRef.value.resetFields();
menuFormRef.value.clearValidate();
formData.value.id = undefined;
}
onMounted(() => {