测试环境退出登录地址修改,行政区划树调用位置修改

Lvtianfang
吕天方 1 month ago
parent af2c309891
commit 85c642cffd

@ -146,6 +146,7 @@ export default {
} else { } else {
localStorage.removeItem("isGovernmentAffairsNetwork"); localStorage.removeItem("isGovernmentAffairsNetwork");
location.href = "/login?redirect=%2Findex"; location.href = "/login?redirect=%2Findex";
// this.$router.replace("/login");
} }
}); });
}) })

@ -98,7 +98,7 @@
import { getCodeImg } from "@/api/login"; import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import { encrypt, decrypt } from "@/utils/jsencrypt"; import { encrypt, decrypt } from "@/utils/jsencrypt";
// import { xzTree } from "@/api/yingji/keyEnterprise.js";
export default { export default {
name: "Login", name: "Login",
computed: { computed: {
@ -194,6 +194,10 @@ export default {
.dispatch("Login", this.loginForm) .dispatch("Login", this.loginForm)
.then(() => { .then(() => {
this.$router.push({ path: "/" }); this.$router.push({ path: "/" });
//
// xzTree().then((res) => {
// localStorage.setItem("TREE_DATA", JSON.stringify(res.data));
// });
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;

Loading…
Cancel
Save