1234567891011121314151617181920212223242526272829 |
- // 查询是否在白名单内
- const checkWhiteListFun = (url, whiteList)=> {
- const path = url.split('?')[0]
- // console.log('path:', path)
- // console.log('whiteList:', whiteList)
- for (const item of whiteList) {
- if (path.startsWith(item)) {
- // console.log('在白名单内')
- return true
- }
- }
- return false
- }
- // 是否展示完善个人信息弹窗
- export const showImprovePersonaInfo = (url) => {
- if (!url) return false
- const list = [
- '/recruit/entRegister',
- '/invite',
- '/enterpriseInvite',
- '/register/company',
- '/register/selectedPersonRole',
- // '/recruit/entRegister/joiningEnterprise',
- // '/recruit/entRegister/inReview',
- ]
- return checkWhiteListFun(url, list)
- }
|