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