ObservationDatabase/frontend/src/store.js
2018-09-17 12:44:47 +01:00

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: {}
});