注释添加
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -81,7 +81,7 @@ export default { | ... | @@ -81,7 +81,7 @@ export default { |
81 | if (res.status === 1) { | 81 | if (res.status === 1) { |
82 | //存储token | 82 | //存储token |
83 | sessionStorage.setItem("token", `Bearer ${res.content}`); | 83 | sessionStorage.setItem("token", `Bearer ${res.content}`); |
84 | //路由判断有无 | 84 | //登录成功后需判断有无重定向,没有重定向则跳转首页 |
85 | this.$router.replace(this.$route.query.redirect || '/') | 85 | this.$router.replace(this.$route.query.redirect || '/') |
86 | } else { | 86 | } else { |
87 | //错误处理 | 87 | //错误处理 | ... | ... |
-
Please register or sign in to post a comment