tasks.js
1 import A from '../actions.js' 2 3 const state = [] 4 5 const mutations = { 6 applyEvent: A.tasksActions, 7 loadCards(state, ev){ 8 console.log("loading cards", ev.length, state.length) 9 ev.forEach(x => { 10 state.push(x) 11 }) 12 } 13 } 14 15 const actions = { 16 17 } 18 19 export default { 20 state, 21 mutations, 22 actions 23 }