Flatten nested repos
This commit is contained in:
30
test/vuex/cpone-queue-ticket/store.js
Normal file
30
test/vuex/cpone-queue-ticket/store.js
Normal file
@@ -0,0 +1,30 @@
|
||||
// State
|
||||
// data ...
|
||||
// Mutations
|
||||
//
|
||||
//
|
||||
// Actions
|
||||
import price from "./modules/price.js";
|
||||
import system from "../../../apps/modules/system/system.js";
|
||||
import patient from "./modules/patient.js";
|
||||
import queue from "./modules/queue.js";
|
||||
export const store = new Vuex.Store({
|
||||
modules: {
|
||||
patient: patient,
|
||||
queue: queue,
|
||||
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)
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user