feat: 联调
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user