refactor permission
This commit is contained in:
@@ -79,8 +79,7 @@ export default {
|
||||
},
|
||||
async logout() {
|
||||
await this.$store.dispatch('user/logout')
|
||||
// In order to re-instantiate the vue-router object to avoid bugs
|
||||
location.reload()
|
||||
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user