34 lines
737 B
PHP
34 lines
737 B
PHP
<?php
|
|
$ts = "?ts=" . Date("ymdhis");
|
|
header('Content-Type: application/javascript');
|
|
?>
|
|
// State
|
|
// data ...
|
|
// Mutations
|
|
//
|
|
//
|
|
// Actions
|
|
import sample from "./modules/sample.js<?php echo $ts ?>";
|
|
import email from "./modules/email.js<?php echo $ts ?>";
|
|
import system from "../../../apps/modules/system/system.js<?php echo $ts ?>";
|
|
export const store = new Vuex.Store({
|
|
modules: {
|
|
email,
|
|
sample: sample,
|
|
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)
|
|
}
|
|
}
|
|
});
|