feat: 联调

This commit is contained in:
王天骄
2026-06-12 15:43:30 +08:00
parent 02d2b0344b
commit 3c8db9f503
17 changed files with 4496 additions and 51 deletions
+15
View File
@@ -151,7 +151,22 @@ export const pageTitles = Object.values(roleMenus).reduce<Record<string, string>
return acc
}, {})
const directPagePaths: Record<string, string> = {
'content-admin-list': '/users/content-admins',
'department-list': '/departments',
'doctor-list': '/users/doctors',
'hospital-list': '/institutions',
'my-students': '/my-students',
'student-list': '/users/students',
'teacher-list': '/teacher-student-relations',
'user-list': '/users'
}
export function getPagePath(page: string) {
if (directPagePaths[page]) {
return directPagePaths[page]
}
return page === 'dashboard' ? '/dashboard' : `/module/${page}`
}