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

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

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

@ -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;

Loading…
Cancel
Save