fix: App not redirecting to login page (#1008)

This commit is contained in:
Rémi Marseault 2023-07-27 22:47:35 +02:00 committed by GitHub
parent ef546cb96c
commit cd1e77b0c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,8 +54,8 @@ export default {
return
}
// this.$store.commit('LOGIN', false)
// if (!this.onLoginPage) return this.$router.push({ name: 'login', query: { redirect: this.$route.fullPath } })
this.$store.commit('LOGIN', false)
if (!this.onLoginPage) return this.$router.push({ name: 'login', query: { redirect: this.$route.fullPath } })
},
blockContextMenu() {
document.addEventListener('contextmenu', event => {