kongdeqiang
2023-04-26 cb5c9968b763362d399e1c7fce1129ec7434aba8
src/views/main-components/user.vue
@@ -36,6 +36,7 @@
import { getOtherSet } from "@/api/index";
import util from "@/libs/util.js";
import changePass from "@/views/change-pass/change-pass";
import {getSessionStore} from "../../libs/storage";
export default {
  name: "user",
  components: {
@@ -106,13 +107,13 @@
          this.$store.commit("setLoading", false);
          if (res.result) {
            let domain = res.result.ssoDomain;
            Cookies.set("accessToken", "", {
              domain: domain,
              expires: 7,
            });
            // Cookies.set("accessToken", "", {
            //   domain: domain,
            //   expires: 7,
            // });
          }
          this.$store.commit("logout", this);
          this.setStore("accessToken", "");
          this.setSessionStore("accessToken", "")
          // 强制刷新页面 重新加载router
          location.reload();
        });