From 85c642cffd46aa708829a1d7bb9096053aed5eb1 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Wed, 11 Dec 2024 10:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=99=BB=E5=BD=95=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92=E6=A0=91=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E4=BD=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/newyjLayout.vue | 1 + src/views/login.vue | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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;