18.03 Vuex - Create an Auth Store
This commit is contained in:
1 parent
bcfc3e0251
commit
6ec3e3ad11
2 files changed
+22
-1
No files matched your search
+3
-1
@@ -3,6 +3,7 @@ import Vuex from 'vuex'
|
||||
|
||||
import tasks from './store-tasks'
|
||||
import settings from './store-settings'
|
||||
import auth from './store-auth'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
@@ -19,7 +20,8 @@ export default function (/* { ssrContext } */) {
|
||||
const Store = new Vuex.Store({
|
||||
modules: {
|
||||
tasks,
|
||||
settings
|
||||
settings,
|
||||
auth
|
||||
},
|
||||
|
||||
// enable strict mode (adds overhead!)
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
const state = {
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
}
|
||||
|
||||
const actions = {
|
||||
}
|
||||
|
||||
const getters = {
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations,
|
||||
actions,
|
||||
getters
|
||||
}
|
||||
Reference in new issue
Block a user