|
@@ -121,29 +121,29 @@ export default {
|
|
|
this.$store.commit("update", ["isLogin", true]);
|
|
|
// var info = JSON.parse(window.sessionStorage.getItem("userInfo"));
|
|
|
this.$store.commit("update", ["userInfo", userInfo]);
|
|
|
- if (this.$route.path == "/login") {
|
|
|
- if (userInfo.type == "1") {
|
|
|
+ // if (this.$route.path == "/login") {
|
|
|
+ // if (userInfo.type == "1") {
|
|
|
this.$router.push("/eventCenter?steps=" + "2");
|
|
|
- } else if (userInfo.type == "2" || userInfo.type == "4") {
|
|
|
- this.$router.push("/anliList");
|
|
|
- } else if (userInfo.type == "5" || userInfo.type == "6") {
|
|
|
- this.$router.push("/anliList1");
|
|
|
- } else if (userInfo.type == "3") {
|
|
|
- this.$router.push("/anliList2");
|
|
|
- }
|
|
|
- }
|
|
|
+ // } else if (userInfo.type == "2" || userInfo.type == "4") {
|
|
|
+ // this.$router.push("/anliList");
|
|
|
+ // } else if (userInfo.type == "5" || userInfo.type == "6") {
|
|
|
+ // this.$router.push("/anliList1");
|
|
|
+ // } else if (userInfo.type == "3") {
|
|
|
+ // this.$router.push("/anliList2");
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.routerP();
|
|
|
} else {
|
|
|
this.$store.commit("update", ["isLogin", false]);
|
|
|
- Message({
|
|
|
- message: "未登录,请登录",
|
|
|
- type: "warning",
|
|
|
- });
|
|
|
+ // Message({
|
|
|
+ // message: "未登录,请登录",
|
|
|
+ // type: "warning",
|
|
|
+ // });
|
|
|
setTimeout(() => {
|
|
|
loading.close();
|
|
|
- if (this.$route.path != "/login") {
|
|
|
- this.$router.push("/login");
|
|
|
- }
|
|
|
+ // if (this.$route.path != "/login") {
|
|
|
+ // this.$router.push("/login");
|
|
|
+ // }
|
|
|
}, 2000);
|
|
|
}
|
|
|
},
|