Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
086b9cdc
Commit
086b9cdc
authored
Jul 17, 2020
by
RuoYi
Browse files
新增菜单默认主类目
parent
22b09535
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/src/views/system/menu/index.vue
View file @
086b9cdc
...
@@ -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
=
"
添加菜单
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment