2023-11-20-dist
This commit is contained in:
@@ -301,14 +301,27 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
//登出
|
||||
logout() {
|
||||
async logout() {
|
||||
let data = {
|
||||
userId: this.userInfo.userId,
|
||||
};
|
||||
Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => {
|
||||
this.$router.replace("/login");
|
||||
WriteCookie("token");
|
||||
});
|
||||
let isTest = getCookie('isTest')
|
||||
console.log(getCookie("token"));
|
||||
if(JSON.parse(isTest)){
|
||||
Https.axiosGet(Https.httpUrls.trialUserLogout,).then((rv) => {
|
||||
Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => {
|
||||
this.$router.replace("/login");
|
||||
WriteCookie("token");
|
||||
});
|
||||
})
|
||||
}else{
|
||||
Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => {
|
||||
this.$router.replace("/login");
|
||||
WriteCookie("token");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
//绑定邮箱
|
||||
|
||||
Reference in New Issue
Block a user