zzzz
2024-03-28 91f9b7a3b7dfc4fe6b9b5008cfec4e18dfb6dcd5
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 {