修复路由bug
This commit is contained in:
parent
effded7ac0
commit
cc827a5c09
File diff suppressed because it is too large
Load Diff
@ -7,10 +7,15 @@ const whiteList = ['/','/pages/oaHome/oaHome', '/pages/oaExamine/oaExamine', '/p
|
||||
]
|
||||
|
||||
const hasPermission = (url) => {
|
||||
if (whiteList.indexOf(url) !== -1 || uni.getStorageSync("TOKEN")) {
|
||||
return true;
|
||||
try{
|
||||
if (whiteList.indexOf(url) !== -1 || whiteList.indexOf(url.split('?')[0]) || uni.getStorageSync("TOKEN")) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}catch(e){
|
||||
console.log(e);
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const initRouter = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user