zzzz
2024-03-31 4f54c05bba6f0d715a9ed51221b2e79811515a8e
src/page/newUser/setting.vue
@@ -164,7 +164,6 @@
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",
@@ -215,7 +214,6 @@
    }
  },
  methods: {
    ...mapMutations(["undataToken"]),
    popClose() {
      this.settingDialog = false;
    },
@@ -389,12 +387,10 @@
    },
    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 {