File tree Expand file tree Collapse file tree 6 files changed +217
-115
lines changed Expand file tree Collapse file tree 6 files changed +217
-115
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ type Meta struct {
24
24
DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"`
25
25
Title string `json:"title" gorm:"comment:菜单名"`
26
26
Icon string `json:"icon" gorm:"comment:菜单图标"`
27
+ CloseTab bool `json:"closeTab" gorm:"comment:自动关闭tab"`
27
28
}
28
29
29
30
type SysBaseMenuParameter struct {
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const formatRouter = (routes) => {
8
8
if ( ( ! item . children || item . children . every ( ch => ch . hidden ) ) && item . name != '404' ) {
9
9
routerList . push ( { label : item . meta . title , value : item . name } )
10
10
}
11
- item . meta . hidden = item . hidden
12
11
if ( item . children && item . children . length > 0 ) {
13
12
formatRouter ( item . children )
14
13
}
You can’t perform that action at this time.
0 commit comments