forked from wangziqi/gongxue-base
style: tighten H5 guards and legacy student UI
This commit is contained in:
@@ -54,11 +54,7 @@ export function shouldGuardPath(path: string) {
|
||||
if (isPublicPath(path)) return false;
|
||||
if (appEnv.portal === 'tenant-admin') return path.startsWith('/pages/tenant-admin/');
|
||||
if (appEnv.portal === 'platform-admin') return path.startsWith('/pages/platform-admin/');
|
||||
return path.startsWith('/pages/student/') && ![
|
||||
'/pages/student/region/index',
|
||||
'/pages/student/catalog/index',
|
||||
'/pages/student/scoreline/index',
|
||||
].includes(path);
|
||||
return path.startsWith('/pages/student/') && path !== '/pages/student/region/index';
|
||||
}
|
||||
|
||||
export function landingPath() {
|
||||
|
||||
Reference in New Issue
Block a user