fix(ui): 完善界面交互与开发配置

This commit is contained in:
zhanjunhao
2026-11-18 19:09:00 +08:00
parent 381751a28d
commit ae7f773627
87 changed files with 2212 additions and 2823 deletions
+21 -21
View File
@@ -154,27 +154,6 @@ export const useNavigation = (
to: '/user-center',
requireAuth: getHeaderModuleRequireAuth(modules, 'userCenter'),
},
{
text: t('控制台'),
itemKey: 'console',
to: '/console/analytics',
activePrefix: '/console',
adminOnly: true,
requireAuth: true,
},
// WeyAi 网页端:外链到网关的 /sso/start(每次点击都重新走一遍免登录授权),
// 需要登录;管理员可在「顶栏管理」里关闭
...(weyaiVisible
? [
{
text: t('WeyAi'),
itemKey: 'weyai',
isExternal: true,
externalLink: weyaiUrl,
requireAuth: true,
},
]
: []),
// 企业中心:仅当用户属于某个企业时作为一级入口展示(不跟随 headerNavModules 配置,
// 由 showOrgEntry 统一控制可见性,故标记 alwaysShow 跳过模块开关过滤)
...(showOrgEntry
@@ -189,6 +168,27 @@ export const useNavigation = (
},
]
: []),
// WeyAi 网页端:外链到网关的 /sso/start(每次点击都重新走一遍免登录授权),
// 需要登录;管理员可在「顶栏管理」里关闭
...(weyaiVisible
? [
{
text: t('WeyAi'),
itemKey: 'weyai',
isExternal: true,
externalLink: weyaiUrl,
requireAuth: true,
},
]
: []),
{
text: t('控制台'),
itemKey: 'console',
to: '/console/analytics',
activePrefix: '/console',
adminOnly: true,
requireAuth: true,
},
];
return allLinks.filter((link) => {