隐藏开发菜单并添加 dist/ 到 .gitignore
This commit is contained in:
parent
2d7be8f7c4
commit
fec4459143
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,6 +18,7 @@ frontend/.env.local
|
||||
frontend/.env.test
|
||||
frontend/.env.production
|
||||
**/frontend/dist/
|
||||
dist/
|
||||
|
||||
|
||||
# 忽略名为 test 的文件夹
|
||||
|
||||
@ -180,6 +180,11 @@ export const useMenuStore = defineStore('menu', () => {
|
||||
// 过滤隐藏的菜单项
|
||||
if (m.hidden) return false
|
||||
|
||||
// 隐藏开发菜单及其所有子菜单
|
||||
if (m.id === 'dev-group' || m.parentId === 'dev-group') {
|
||||
return false
|
||||
}
|
||||
|
||||
// 非 System User 的过滤逻辑
|
||||
if (!isSystemUser) {
|
||||
// 过滤掉 pagetype 和 workspace 类型
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user