|
|
|
@ -18,7 +18,7 @@ router.beforeEach(async (to:any, from:any, next:any) => { |
|
|
|
NProgress.start(); |
|
|
|
console.log("白名单路由----》"); |
|
|
|
const hasToken = localStorage.getItem(appTokenKey); |
|
|
|
// console.log("白名单路由----》",hasToken,"--->",to.path);
|
|
|
|
console.log("白名单路由----》",hasToken,"--->",to.path); |
|
|
|
if (hasToken) { |
|
|
|
// console.log("白名单路由--22--》",hasToken,to.path);
|
|
|
|
if (to.path === "/login") { |
|
|
|
|