This commit is contained in:
nisen
2023-11-23 14:28:25 +08:00
parent 5c1ecc348a
commit 90872938be
2 changed files with 2 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ const refreshToken = function(token){
const boeLogin = function(token){
//return ajax.post('/xboe/account/boelogin',{token:token});
//登录时,新的用户接口调用查询用户信息
return ajax.post('/xboe/account/boenewlogin',{token:token},{timeout: 20000});
return ajax.post('/xboe/account/boenewlogin',{token:token});
}
export default{

View File

@@ -33,8 +33,7 @@
data(){
return {
curToken:'',
toUrl:'',
onceTimeout:false
toUrl:''
}
},
methods:{
@@ -52,12 +51,6 @@
}else{
this.$message.error("登录失败:"+rs.message);
}
}).catch((error) => {
console.log(error);
if(!this.onceTimeout){
this.onceTimeout = true;
this.boeLogin()
}
})
}
}