// State // data ... // Mutations // // // Actions import priceref from "./modules/priceref.js"; import system from "../../../apps/modules/system/system.js"; export const store = new Vuex.Store({ modules: { priceref: priceref, system: system }, state: { dialog_confirm: false }, mutations: { change_tab(state, ntab) { state.tab_selected = ntab }, update_dialog_confirm(state, v) { state.dialog_confirm = v } }, actions: { change_tab(context, ntab) { context.commit('change_tab', ntab) } } });