Init
This commit is contained in:
23
src/store.js
Normal file
23
src/store.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
barColor: 'rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)',
|
||||
barImage: 'https://demos.creative-tim.com/material-dashboard/assets/img/sidebar-1.jpg',
|
||||
drawer: null
|
||||
},
|
||||
mutations: {
|
||||
SET_BAR_IMAGE (state, payload) {
|
||||
state.barImage = payload
|
||||
},
|
||||
SET_DRAWER (state, payload) {
|
||||
state.drawer = payload
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user