From 8deacb702e4d1d8395dba195542a7cf106184fbc Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期五, 31 七月 2020 16:50:28 +0800 Subject: [PATCH] !54 update ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml. Merge pull request !54 from yongdaidai/N/A --- ruoyi-ui/src/views/system/menu/index.vue | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue index 1e36780..2303a52 100644 --- a/ruoyi-ui/src/views/system/menu/index.vue +++ b/ruoyi-ui/src/views/system/menu/index.vue @@ -314,8 +314,10 @@ handleAdd(row) { this.reset(); this.getTreeselect(); - if (row != null) { + if (row != null && row.menuId) { this.form.parentId = row.menuId; + } else { + this.form.parentId = 0; } this.open = true; this.title = "添加菜单"; -- Gitblit v1.9.2