blob: 7f5f1dfa06c5c7cf01c95929a9db9cf551cf1f74 (
plain) (
tree)
|
|
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;
|