Commit 2410c329 authored by 乐宝呗666's avatar 乐宝呗666

去掉重定向路径

parent 82ed59b9
...@@ -67,11 +67,11 @@ export default { ...@@ -67,11 +67,11 @@ export default {
const isOpt = data.user.type; const isOpt = 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]
if (isOpt == "4") { if (isOpt == "4") {
this.$router.push(redirectPath || "/opt"); this.$router.push("/opt");
}else if (isOpt == "2") { }else if (isOpt == "2") {
this.$router.push(redirectPath || "/commit"); this.$router.push("/commit");
}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