thirdpayment
elf 11 months ago
parent 2033a091df
commit bfef5f89d1

@ -87,7 +87,10 @@
console.log(response); console.log(response);
let result = response.data let result = response.data
if (result.code != 1000) { 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.username = result.data.username;
this.userInfo = result.data.userInfo; this.userInfo = result.data.userInfo;
@ -173,7 +176,12 @@
if (result.code != 1000) { if (result.code != 1000) {
return this.$message.error(response.data.message); 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) => { .catch((error) => {
this.$message.error('请求错误'); this.$message.error('请求错误');

Loading…
Cancel
Save