首页login

jc1.0
fanluyan 1 year ago
parent 6a648ee743
commit 4ed2c64309

@ -66,10 +66,10 @@ export default {
type: "success", type: "success",
}); });
//this.$store.commit("REMOVE_INFO"); //this.$store.commit("REMOVE_INFO");
// this.$router.push("/login"); this.$router.push("/login");
console.log(this.$cookies.get("Admin-Token")); // console.log(this.$cookies.get("Admin-Token"));
this.$cookies.remove("Admin-Token"); // this.$cookies.remove("Admin-Token");
window.location.href = this.hostName + "/#/login"; // window.location.href = this.hostName + "/#/login";
break; break;
} }
}, },

@ -11,7 +11,7 @@ const routes = [
}, },
{ {
path: "/", path: "/",
redirect: "/dataReport", redirect: "/homepage",
component: () => import("../components/Home.vue"), component: () => import("../components/Home.vue"),
children: [ children: [
{ {

@ -105,7 +105,7 @@ export default {
message: "登录成功", message: "登录成功",
type: "success", type: "success",
}); });
this.$router.push("/"); this.$router.push("/home");
return; return;
} else { } else {
this.$message({ this.$message({

Loading…
Cancel
Save