28 lines
730 B
JavaScript
28 lines
730 B
JavaScript
import patient from "./modules/patient.js";
|
|
import payment from "./modules/payment.js";
|
|
import paymentnew from "./modules/paymentnew.js";
|
|
import test from "./modules/test.js";
|
|
import system from "../../../apps/modules/system/system.js";
|
|
export const store = new Vuex.Store({
|
|
modules: {
|
|
patient: patient,
|
|
payment: payment,
|
|
test:test,
|
|
paymentnew:paymentnew,
|
|
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)
|
|
}
|
|
}
|
|
});
|