@@ -86,13 +86,19 @@ export default {
...mapActions(['login', 'update', 'getQrcode', 'logout']),
async toLogout() {
// 云就业退出
- await this.logout(this.user.id);
- this.deleteUser();
- this.$notify({
- title: '注销成功',
- type: 'success',
- });
- this.toLogin();
+ const res = await this.logout(this.user.id);
+ console.log(res);
+ if (res.data) {
+ this.deleteUser();
+ this.$notify({
+ title: '注销成功',
+ type: 'success',
+ });
+ console.log(res.data);
+ window.location.replace(res.data);
+ }
+
+ // this.toLogin();
},
handleCommand(type) {
if (type === 'logout') this.toLogout();