zzzz
2024-03-27 71d9414eea8a2aa2f1bb9cc8f23f0a69973269f5
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",
@@ -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 {