Skip to content

Commit 072bf62

Browse files
author
蒋吉兆
committed
增加menu可配置是否自动关闭功能 增加单页面刷新功能
1 parent 477a18b commit 072bf62

File tree

6 files changed

+217
-115
lines changed

6 files changed

+217
-115
lines changed

server/model/sys_base_menu.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

2930
type SysBaseMenuParameter struct {

web/src/store/module/router.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)