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