|
@@ -1,9 +1,12 @@
|
|
|
|
|
|
// 查询是否在白名单内
|
|
|
-const isInWhiteList = (url, whiteList)=> {
|
|
|
+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
|
|
|
}
|
|
|
}
|
|
@@ -20,5 +23,5 @@ export const showImprovePersonaInfo = (url) => {
|
|
|
// '/recruit/entRegister/joiningEnterprise',
|
|
|
// '/recruit/entRegister/inReview',
|
|
|
]
|
|
|
- return isInWhiteList(url, list)
|
|
|
+ return checkWhiteListFun(url, list)
|
|
|
}
|