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
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:
19
src/utils/routeContext.ts
Normal file
19
src/utils/routeContext.ts
Normal 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)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user