正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -314,8 +314,10 @@ export default { | @@ -314,8 +314,10 @@ export default { | ||
| 314 | handleAdd(row) { | 314 | handleAdd(row) { |
| 315 | this.reset(); | 315 | this.reset(); |
| 316 | this.getTreeselect(); | 316 | this.getTreeselect(); |
| 317 | - if (row != null) { | 317 | + if (row != null && row.menuId) { |
| 318 | this.form.parentId = row.menuId; | 318 | this.form.parentId = row.menuId; |
| 319 | + } else { | ||
| 320 | + this.form.parentId = 0; | ||
| 319 | } | 321 | } |
| 320 | this.open = true; | 322 | this.open = true; |
| 321 | this.title = "添加菜单"; | 323 | this.title = "添加菜单"; |
-
请 注册 或 登录 后发表评论