diff --git a/public/account.html b/public/account.html
index b64e8f1..ec96b48 100644
--- a/public/account.html
+++ b/public/account.html
@@ -87,7 +87,10 @@
console.log(response);
let result = response.data
if (result.code != 1000) {
- return this.$message.error(response.data.message);
+ this.$message.error(response.data.message);
+ window.sessionStorage.removeItem('token');
+ window.location.href = '/login.html';
+ return;
}
this.username = result.data.username;
this.userInfo = result.data.userInfo;
@@ -173,7 +176,12 @@
if (result.code != 1000) {
return this.$message.error(response.data.message);
}
- window.location.href = window.location.href;
+ if (result.data.result) {
+ this.$message.success('解绑成功');
+ window.location.href = window.location.href;
+ } else {
+ return this.$message.error('解绑失败');
+ }
})
.catch((error) => {
this.$message.error('请求错误');