31 lines
760 B
JavaScript
31 lines
760 B
JavaScript
// State
|
|
// data ...
|
|
// Mutations
|
|
//
|
|
//
|
|
// Actions
|
|
import samplecall from "./modules/samplecall.js";
|
|
import samplesend from "./modules/samplesend.js";
|
|
import samplestorage from "./modules/samplestorage.js";
|
|
import system from "../../apps/modules/system/system.js";
|
|
export const store = new Vuex.Store({
|
|
modules: {
|
|
samplecall: samplecall,
|
|
samplesend:samplesend,
|
|
samplestorage:samplestorage,
|
|
system: system
|
|
},
|
|
state: {
|
|
tab_selected: 'pasien-dokter'
|
|
},
|
|
mutations: {
|
|
change_tab(state, ntab) {
|
|
state.tab_selected = ntab
|
|
}
|
|
},
|
|
actions: {
|
|
change_tab(context, ntab) {
|
|
context.commit('change_tab', ntab)
|
|
}
|
|
}
|
|
}); |