|
@@ -45,8 +45,8 @@ router.beforeEach(async (to, from, next) => {
|
|
|
await tools.weiXinLogin().then(isLogin=>{
|
|
await tools.weiXinLogin().then(isLogin=>{
|
|
|
console.log('-----------isLogin-----------')
|
|
console.log('-----------isLogin-----------')
|
|
|
if(isLogin){
|
|
if(isLogin){
|
|
|
- // next();
|
|
|
|
|
- next('/pages/login/index');
|
|
|
|
|
|
|
+ next();
|
|
|
|
|
+ // next('/pages/login/index');
|
|
|
}else {
|
|
}else {
|
|
|
next('/pages/login/index');
|
|
next('/pages/login/index');
|
|
|
}
|
|
}
|