35 lines
696 B
JavaScript
35 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: {
|
|
dialog_loading : false,
|
|
dialog_error : false,
|
|
message_error: '-'
|
|
},
|
|
mutations: {
|
|
update_dialog_loading(state, v) {
|
|
state.dialog_loading = v
|
|
},
|
|
|
|
update_dialog_error(state, v) {
|
|
state.dialog_error = v
|
|
},
|
|
|
|
update_message_error(state, v) {
|
|
state.message_error = v
|
|
}
|
|
},
|
|
actions: {
|
|
|
|
}
|
|
}); |