Commit 2cc0b5fa by Mr. Lan

fix: 页面无故跳转404

parent 089f8a6c
Showing with 2 additions and 1 deletions
...@@ -227,7 +227,8 @@ export default { ...@@ -227,7 +227,8 @@ export default {
this.loading = true this.loading = true
this.$store.dispatch('user/login', this.loginForm) this.$store.dispatch('user/login', this.loginForm)
.then(() => { .then(() => {
this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) // this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
this.$router.push({ path: '/', query: this.otherQuery })
this.loading = false this.loading = false
}) })
.catch(() => { .catch(() => {
......
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 sign in to comment