This commit is contained in:
@@ -13,6 +13,7 @@ import "nprogress/nprogress.css";
|
||||
import dayjs from "dayjs";
|
||||
import lodash from "./libs/lodash.min.js";
|
||||
//my libs
|
||||
import gzeventbus from "./api/eventbus";
|
||||
import gzutil from "./api/gzutil";
|
||||
import locale from "./api/locale";
|
||||
import gzapi from "./api/gzapi";
|
||||
@@ -25,6 +26,7 @@ import gzdateandtimepicker from "./components/gzdateandtimepicker.vue";
|
||||
// LIBS AND GLOBAL ITEMS
|
||||
// (https://medium.com/js-dojo/use-any-javascript-library-with-vue-js-3f7e2a4974a8)
|
||||
//
|
||||
Object.defineProperty(Vue.prototype, "$gzevent", { value: gzeventbus });
|
||||
Object.defineProperty(Vue.prototype, "$gzutil", { value: gzutil });
|
||||
Object.defineProperty(Vue.prototype, "$dayjs", { value: dayjs });
|
||||
Object.defineProperty(Vue.prototype, "$_", { value: lodash });
|
||||
|
||||
Reference in New Issue
Block a user