| | |
| | | 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: { |
| | |
| | | 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(); |
| | | }); |
| | |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | </style> |
| | | </style> |