Commit 0f184b37 by xinla

登录重定向问题

1 parent 59297b94
...@@ -115,6 +115,7 @@ export default { ...@@ -115,6 +115,7 @@ export default {
}, },
}, },
created() { created() {
console.log(this.$route.query.redirect)
getCodeInSyetem().then(({ data, code, msg }) => { getCodeInSyetem().then(({ data, code, msg }) => {
if (code === 200) { if (code === 200) {
this.authLink = data.loginQr this.authLink = data.loginQr
...@@ -178,7 +179,7 @@ export default { ...@@ -178,7 +179,7 @@ export default {
this.$store this.$store
.Login(loginForm) .Login(loginForm)
.then(() => { .then(() => {
this.$router.push({ path: this.redirect || window.lwConfig.BASE_URL }) this.$router.push(this.redirect || window.lwConfig.BASE_URL)
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!