提交 086b9cdc authored 作者: RuoYi's avatar RuoYi

新增菜单默认主类目

上级 22b09535
...@@ -314,8 +314,10 @@ export default { ...@@ -314,8 +314,10 @@ export default {
handleAdd(row) { handleAdd(row) {
this.reset(); this.reset();
this.getTreeselect(); this.getTreeselect();
if (row != null) { if (row != null && row.menuId) {
this.form.parentId = row.menuId; this.form.parentId = row.menuId;
} else {
this.form.parentId = 0;
} }
this.open = true; this.open = true;
this.title = "添加菜单"; this.title = "添加菜单";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论