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.
willaengine/resources/js/Global/mixins/global.js

27 lines
529 B

5 years ago
import { mapActions, mapMutations } from "vuex";
const global = {
methods: {
$_getPath(subPath) {
return '/' + subPath;
5 years ago
},
//Modal
...mapActions("modal", ["openModal", "closeModal", "dialog"]),
$_openModal(options) {
this.openModal(options);
},
$_closeModal(options) {
this.closeModal(options);
},
//Alert
$_dialog(options) {
this.dialog(options);
},
}
};
export {global}