Files
FE_CPONE/test/vuex/one-fo-process-from-distribution/store.js
2026-04-27 10:13:31 +07:00

24 lines
395 B
JavaScript

// State
// data ...
// Mutations
//
//
// Actions
import * as api from "./api.js";
export const store = new Vuex.Store({
state: {
tab_selected : 'pasien-dokter'
},
mutations: {
change_tab(state,ntab) {
state.tab_selected = ntab
}
},
actions: {
change_tab(context,ntab) {
context.commit('change_tab',ntab)
}
}
});