29 lines
515 B
JavaScript
29 lines
515 B
JavaScript
import Vue from "vue";
|
|
import Vuex from "vuex";
|
|
|
|
Vue.use(Vuex);
|
|
|
|
export default new Vuex.Store({
|
|
state: {
|
|
site: null,
|
|
tutors: [],
|
|
description: null,
|
|
type: null
|
|
},
|
|
mutations: {
|
|
setSite(state, newSite) {
|
|
state.site = newSite;
|
|
},
|
|
setTutors(state, newTutors) {
|
|
state.tutors = newTutors;
|
|
},
|
|
setDescription(state, newDescription) {
|
|
state.description = newDescription;
|
|
},
|
|
setType(state, newType){
|
|
state.type = newType;
|
|
}
|
|
},
|
|
actions: {}
|
|
});
|