Commit 0f184b37 by xinla

登录重定向问题

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