mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
32 lines
665 B
JavaScript
32 lines
665 B
JavaScript
import 'es6-promise/auto';
|
|
import { createStore } from 'vuex';
|
|
|
|
const debug = process.env.NODE_ENV !== 'production';
|
|
//console.log('window.activity', window.activity);
|
|
|
|
const store = createStore({
|
|
strict: debug,
|
|
state: {
|
|
activity: window.activity
|
|
},
|
|
getters: {
|
|
|
|
},
|
|
mutations: {
|
|
addPerson(state, payload) {
|
|
|
|
}
|
|
},
|
|
actions: {
|
|
addPerson() {
|
|
//let el = document.getElementById('form['activity']['xxx']['xxxx']');
|
|
//let option = document.createElement('option');
|
|
//option.value = person.id;
|
|
//el.appendChild(option);
|
|
commit('addPerson', payload)
|
|
}
|
|
}
|
|
});
|
|
|
|
export default store;
|