router jump to login when logout

This commit is contained in:
龚祖望 2022-10-10 20:50:38 +08:00
parent 96aacbd62b
commit 48994438d8
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default {
}, },
async logout() { async logout() {
await this.$store.dispatch('user/logout') await this.$store.dispatch('user/logout')
this.$router.push(`/login?redirect=${this.$route.fullPath}`) this.$router.push('/login')
} }
} }
} }