feat(aihr): complete uni-app role workflows

This commit is contained in:
2026-07-09 10:42:20 +08:00
parent e4070c8b8c
commit 678543e8a5
73 changed files with 15696 additions and 134 deletions
@@ -36,7 +36,19 @@ const route = useRoute();
const appStore = useAppStore();
const settingsStore = useSettingsStore();
const permissionStore = usePermissionStore();
const demoMenuTitles = new Set(['首页', 'AI面试', '三角色对练', '案例沉淀', 'SOP知识库', '资料处理', '模型配置']);
const demoMenuTitles = new Set([
'首页',
'AI面试',
'训练运营',
'三角色对练',
'复盘校准',
'案例沉淀',
'SOP知识库',
'资料处理',
'模型配置',
'组织与权限',
'成长激励'
]);
const getRouteMenuTitle = (route: RouteRecordRaw) => route.children?.find((child) => !child.hidden)?.meta?.title || route.meta?.title;
const sidebarRouters = computed<RouteRecordRaw[]>(() =>
permissionStore.getSidebarRoutes().filter((route) => demoMenuTitles.has(String(getRouteMenuTitle(route))))