Skip to content

Commit

Permalink
fix: 🐛 修复编辑后未清空id再新增菜单覆盖的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxianrui committed Jun 5, 2024
1 parent ef907ba commit 0e78eeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/system/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down Expand Up @@ -568,6 +568,7 @@ function closeDialog() {
dialog.visible = false;
menuFormRef.value.resetFields();
menuFormRef.value.clearValidate();
formData.value.id = undefined;
}
onMounted(() => {
Expand Down

0 comments on commit 0e78eeb

Please sign in to comment.