18.10 Navigation Guards - Protect Routes when Logged Out
This commit is contained in:
parent
60f0dcf11a
commit
492ecb3e3e
@ -1,3 +1,4 @@
|
|||||||
|
import { LocalStorage } from 'quasar'
|
||||||
import { firebaseAuth } from 'boot/firebase'
|
import { firebaseAuth } from 'boot/firebase'
|
||||||
|
|
||||||
const state = {
|
const state = {
|
||||||
@ -7,6 +8,7 @@ const state = {
|
|||||||
const mutations = {
|
const mutations = {
|
||||||
setLoggedIn (state, value) {
|
setLoggedIn (state, value) {
|
||||||
state.loggedIn = value
|
state.loggedIn = value
|
||||||
|
LocalStorage.set('loggedIn', value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user