You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
529 B
27 lines
529 B
import { mapActions, mapMutations } from "vuex";
|
|
const global = {
|
|
methods: {
|
|
$_getPath(subPath) {
|
|
return '/' + subPath;
|
|
},
|
|
|
|
//Modal
|
|
|
|
...mapActions("modal", ["openModal", "closeModal", "dialog"]),
|
|
$_openModal(options) {
|
|
this.openModal(options);
|
|
},
|
|
$_closeModal(options) {
|
|
this.closeModal(options);
|
|
},
|
|
|
|
//Alert
|
|
|
|
$_dialog(options) {
|
|
this.dialog(options);
|
|
},
|
|
}
|
|
};
|
|
|
|
export {global}
|