blob: 7f5f1dfa06c5c7cf01c95929a9db9cf551cf1f74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const store = new Vuex.Store({
state: {
selectedSign: "all",
callSigns: [],
data: []
},
getters: {
getSelectedSign(state) {
return state.selectedSign;
},
getSigns(state) {
return state.callSigns;
}
},
mutations: {
fillSigns(state, signs) {
state.callSigns = signs;
}
},
actions: {
getSigns(context) {
let data = ['test', 'TEST', 'TeSt'];
context.commit('fillSigns', data);
}
}
});
export default store;
|