diff --git a/pages/login.vue b/pages/login.vue index 44a9108c8..9084163f2 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -92,7 +92,7 @@ export default { try { await this.$store.dispatch('auth/login', { ...this.form }) this.$toast.success('You are logged in!') - this.$router.replace('/') + this.$router.replace(this.$route.query.path || '/') } catch (err) { this.$toast.error(err.message) }