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 {
2424 DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"`
2525 Title string `json:"title" gorm:"comment:菜单名"`
2626 Icon string `json:"icon" gorm:"comment:菜单图标"`
27+ CloseTab bool `json:"closeTab" gorm:"comment:自动关闭tab"`
2728}
2829
2930type SysBaseMenuParameter struct {
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const formatRouter = (routes) => {
88 if ( ( ! item . children || item . children . every ( ch => ch . hidden ) ) && item . name != '404' ) {
99 routerList . push ( { label : item . meta . title , value : item . name } )
1010 }
11- item . meta . hidden = item . hidden
1211 if ( item . children && item . children . length > 0 ) {
1312 formatRouter ( item . children )
1413 }
You can’t perform that action at this time.
0 commit comments