11
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-06-05 13:58:56 +08:00
parent e467fcc2cf
commit fdd80c6cd1
6 changed files with 86 additions and 28 deletions

19
src/utils/routeContext.ts Normal file
View File

@@ -0,0 +1,19 @@
import { PageEnum } from '@/enums/pagesEnums';
import { isThirdPartyTransitionPage } from '@/utils/thirdPartyLogin';
/** 求职者门户路由(含 base /shihezi/ */
export function isJobPortalPage(pathname: string): boolean {
return (
pathname.startsWith('/job-portal') || pathname.startsWith('/shihezi/job-portal')
);
}
/** 无需在应用启动前拉取管理端菜单/用户信息的路径 */
export function shouldSkipManagementBootstrap(pathname: string): boolean {
return (
pathname === PageEnum.LOGIN ||
pathname === '/shihezi/user/login' ||
isThirdPartyTransitionPage(pathname) ||
isJobPortalPage(pathname)
);
}