From 91f9b7a3b7dfc4fe6b9b5008cfec4e18dfb6dcd5 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Thu, 28 Mar 2024 13:04:36 +0800
Subject: [PATCH] 注册页面的客服地址错误
---
src/page/newUser/setting.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/page/newUser/setting.vue b/src/page/newUser/setting.vue
index abdd7a8..343626a 100644
--- a/src/page/newUser/setting.vue
+++ b/src/page/newUser/setting.vue
@@ -164,6 +164,7 @@
import * as api from "@/axios/api";
import { Toast, MessageBox } from "mint-ui";
import { isNull, pwdReg } from "@/utils/utils";
+import { mapMutations } from "vuex";
export default {
name: "newUser",
@@ -198,7 +199,7 @@
lang: "ry",
},
- // { text: '繁体中文', icon: require('@/assets/ico/tw.png'), lang: 'tw' }
+ { text: "繁体中文", icon: require("@/assets/ico/tw.png"), lang: "tw" },
],
};
},
@@ -214,6 +215,7 @@
}
},
methods: {
+ ...mapMutations(["undataToken"]),
popClose() {
this.settingDialog = false;
},
@@ -387,10 +389,12 @@
},
async toRegister() {
// 注销登陆
+
window.localStorage.removeItem("USERTOKEN"); // 清空本地存储 USERTOKEN字段
this.clearCookie();
let data = await api.logout();
if (data.status === 0) {
+ this.undataToken("");
// Toast(data.msg)
this.$router.push("/login");
} else {
--
Gitblit v1.9.3