Add authentication followup to front-end to ease navigation & redirects

This commit is contained in:
Bubka
2023-08-04 15:13:30 +02:00
parent afd020019b
commit a80a002ce7
5 changed files with 26 additions and 6 deletions

View File

@ -26,9 +26,6 @@ Vue.mixin({
},
clearStorage() {
this.$storage.set('accounts')
this.$storage.set('groups')
this.$storage.set('lastRoute')
},
exitSettings: function (event) {
@ -36,6 +33,10 @@ Vue.mixin({
this.$notify({ clean: true })
this.$router.push({ name: 'accounts' })
}
this.$storage.remove('accounts')
this.$storage.remove('groups')
this.$storage.remove('lastRoute')
this.$storage.remove('authenticated')
},
isUrl: function (url) {