mirror of
https://github.com/kevin-DL/comedy-video-lib.git
synced 2026-01-12 03:05:13 +00:00
28 lines
470 B
JavaScript
28 lines
470 B
JavaScript
export const state = () => ({
|
|
token: null,
|
|
loggedIn: false,
|
|
loading: false,
|
|
profile: null,
|
|
})
|
|
|
|
export const mutations = {
|
|
setToken(state, token) {
|
|
state.token = token
|
|
},
|
|
setLoggedIn(state, loggedIn) {
|
|
state.loggedIn = loggedIn
|
|
},
|
|
setLoading(state, loading) {
|
|
state.loading = loading
|
|
},
|
|
setProfile(state, profile) {
|
|
state.profile = profile
|
|
},
|
|
}
|
|
|
|
export const actions = {
|
|
loadProfile({ commit }) {
|
|
commit('setProfile')
|
|
},
|
|
}
|