This commit is contained in:
2019-04-16 20:10:19 +00:00
parent d81cfe62b4
commit a35077298b
4 changed files with 72 additions and 11 deletions

View File

@@ -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 });