diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index d823ad9..0a36cd6 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -146,6 +146,7 @@ export default { } else { localStorage.removeItem("isGovernmentAffairsNetwork"); location.href = "/login?redirect=%2Findex"; + // this.$router.replace("/login"); } }); }) diff --git a/src/views/login.vue b/src/views/login.vue index ce4fe1c..8bbb3c8 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -98,7 +98,7 @@ import { getCodeImg } from "@/api/login"; import Cookies from "js-cookie"; import { encrypt, decrypt } from "@/utils/jsencrypt"; - +// import { xzTree } from "@/api/yingji/keyEnterprise.js"; export default { name: "Login", computed: { @@ -194,6 +194,10 @@ export default { .dispatch("Login", this.loginForm) .then(() => { this.$router.push({ path: "/" }); + // 行政区域树状 + // xzTree().then((res) => { + // localStorage.setItem("TREE_DATA", JSON.stringify(res.data)); + // }); }) .catch(() => { this.loading = false;