|
@@ -2,11 +2,11 @@
|
|
|
// 查询是否在白名单内
|
|
|
const checkWhiteListFun = (url, whiteList)=> {
|
|
|
const path = url.split('?')[0]
|
|
|
- console.log('path:', path)
|
|
|
- console.log('whiteList:', whiteList)
|
|
|
+ // console.log('path:', path)
|
|
|
+ // console.log('whiteList:', whiteList)
|
|
|
for (const item of whiteList) {
|
|
|
if (path.startsWith(item)) {
|
|
|
- console.log('在白名单内')
|
|
|
+ // console.log('在白名单内')
|
|
|
return true
|
|
|
}
|
|
|
}
|