Files
FE_CPONE/test/vuex/one-klinik-screening/store.js
2026-04-27 10:13:31 +07:00

31 lines
696 B
JavaScript

// State
// data ...
// Mutations
//
//
// Actions
import patient from "./modules/patient.js";
import system from "../../../apps/modules/system/system.js";
export const store = new Vuex.Store({
modules: {
patient: patient,
system: system
},
state: {
tab_selected: 'pasien-dokter',
button_active : '01'
},
mutations: {
change_tab(state, ntab) {
state.tab_selected = ntab
},
change_button(state, tab) {
state.button_active = tab;
},
},
actions: {
change_tab(context, ntab) {
context.commit('change_tab', ntab)
}
}
});