|
@@ -188,8 +188,13 @@ export default {
|
|
this.errorMessage = error.message || '授权失败,请重试'
|
|
this.errorMessage = error.message || '授权失败,请重试'
|
|
|
|
|
|
// 如果授权失败,跳转到登录页面
|
|
// 如果授权失败,跳转到登录页面
|
|
- setTimeout(() => {
|
|
|
|
- this.$router.replace('/login2')
|
|
|
|
|
|
+ setTimeout( async () => {
|
|
|
|
+ let type = await this.getLogin();
|
|
|
|
+ if(type == '1'){
|
|
|
|
+ return;
|
|
|
|
+ }else {
|
|
|
|
+ this.$router.replace('/login2')
|
|
|
|
+ }
|
|
}, 2000)
|
|
}, 2000)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -281,7 +286,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- mounted() {
|
|
|
|
|
|
+ async mounted() {
|
|
// 检查是否在微信浏览器中
|
|
// 检查是否在微信浏览器中
|
|
if (!this.isWechatBrowser()) {
|
|
if (!this.isWechatBrowser()) {
|
|
// this.authStatus = 'error'
|
|
// this.authStatus = 'error'
|
|
@@ -292,7 +297,7 @@ export default {
|
|
}else{
|
|
}else{
|
|
Cookies.set('isWeChat', '2')
|
|
Cookies.set('isWeChat', '2')
|
|
}
|
|
}
|
|
- let type = this.getLogin();
|
|
|
|
|
|
+ let type = await this.getLogin();
|
|
if(type == '1'){
|
|
if(type == '1'){
|
|
return;
|
|
return;
|
|
}
|
|
}
|