Commit 543c98a6 authored by Your Name's avatar Your Name

运维账号不能登陆

parent 1ed3c27e
...@@ -95,4 +95,3 @@ export default { ...@@ -95,4 +95,3 @@ export default {
} }
} }
</style> </style>
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
}) })
} }
const isOpt = +data.user.roleList[0]; const isOpt = +data.user.roleList[0];
const isOpt1 = +data.user.type;
sessionStorage.setItem("token", data.token); sessionStorage.setItem("token", data.token);
sessionStorage.setItem("userInfo", JSON.stringify(data.user)); sessionStorage.setItem("userInfo", JSON.stringify(data.user));
// let redirectPath = decodeURIComponent(this.$route.fullPath).split('redirect=')[1] // let redirectPath = decodeURIComponent(this.$route.fullPath).split('redirect=')[1]
...@@ -72,6 +73,8 @@ export default { ...@@ -72,6 +73,8 @@ export default {
this.$router.push("/commit"); this.$router.push("/commit");
}else if (isOpt == 2) { }else if (isOpt == 2) {
this.$router.push("/learn"); this.$router.push("/learn");
}else if (isOpt1 == 4) {
this.$router.push("/opt");
}else{ }else{
this.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"); this.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment