18.10 Navigation Guards - Protect Routes when Logged Out

This commit is contained in:
fwarren committed 2021-02-13 20:18:51 -08:00
1 parent 60f0dcf11a
commit 492ecb3e3e
1 file changed
+2
+2
View File
@@ -1,3 +1,4 @@
import { LocalStorage } from 'quasar'
import { firebaseAuth } from 'boot/firebase'
const state = {
@@ -7,6 +8,7 @@ const state = {
const mutations = {
setLoggedIn (state, value) {
state.loggedIn = value
LocalStorage.set('loggedIn', value)
}
}