30 lines
686 B
JavaScript
30 lines
686 B
JavaScript
// State
|
|
// data ...
|
|
// Mutations
|
|
//
|
|
//
|
|
// Actions
|
|
import courier from "./modules/courier.js";
|
|
import holiday from "./modules/holiday.js";
|
|
import patient from "./modules/patient.js";
|
|
import system from "../../apps/modules/system/system.js";
|
|
export const store = new Vuex.Store({
|
|
modules: {
|
|
holiday: holiday,
|
|
system: system,
|
|
patient: patient,
|
|
},
|
|
state: {
|
|
tab_selected: 'admin-kurir'
|
|
},
|
|
mutations: {
|
|
change_tab(state, ntab) {
|
|
state.tab_selected = ntab
|
|
}
|
|
},
|
|
actions: {
|
|
change_tab(context, ntab) {
|
|
context.commit('change_tab', ntab)
|
|
}
|
|
}
|
|
}); |