mirror of https://github.com/Lissy93/dashy.git
🚧 WIP, working on VueX store
This commit is contained in:
parent
41682c8914
commit
2946412b4c
|
@ -0,0 +1,17 @@
|
|||
import Vue from 'vue';
|
||||
import Vuex from 'vuex';
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
count: 0,
|
||||
},
|
||||
mutations: {
|
||||
increment(state) {
|
||||
state.count++;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default store;
|
Loading…
Reference in New Issue