|
@@ -189,13 +189,10 @@ export default {
|
|
this.$message.error(this.errorMessage)
|
|
this.$message.error(this.errorMessage)
|
|
// 如果授权失败,跳转到登录页面
|
|
// 如果授权失败,跳转到登录页面
|
|
// setTimeout( async () => {
|
|
// setTimeout( async () => {
|
|
- let type = await this.getLogin();
|
|
|
|
- if(type == '1'){
|
|
|
|
- return;
|
|
|
|
- }else {
|
|
|
|
|
|
+ await this.getLogin();
|
|
|
|
+ setTimeout( async () => {
|
|
this.$router.replace('/login2')
|
|
this.$router.replace('/login2')
|
|
- }
|
|
|
|
- // }, 2000)
|
|
|
|
|
|
+ }, 2000)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -299,10 +296,8 @@ export default {
|
|
}else{
|
|
}else{
|
|
Cookies.set('isWeChat', '2')
|
|
Cookies.set('isWeChat', '2')
|
|
}
|
|
}
|
|
- let type = await this.getLogin();
|
|
|
|
- if(type == '1'){
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ await this.getLogin();
|
|
|
|
+
|
|
// 如果有code参数,说明是从微信授权回调过来的
|
|
// 如果有code参数,说明是从微信授权回调过来的
|
|
if (this.code) {
|
|
if (this.code) {
|
|
this.handleAuthCallback()
|
|
this.handleAuthCallback()
|