This commit is contained in:
@@ -10,9 +10,11 @@ import "./registerServiceWorker";
|
|||||||
import errorHandler from "./api/errorhandler";
|
import errorHandler from "./api/errorhandler";
|
||||||
import NProgress from "nprogress";
|
import NProgress from "nprogress";
|
||||||
import "nprogress/nprogress.css";
|
import "nprogress/nprogress.css";
|
||||||
|
import gzdateandtimepicker from "./components/gzdateandtimepicker.vue";
|
||||||
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import locale from "./api/locale";
|
import locale from "./api/locale";
|
||||||
import gzdateandtimepicker from "./components/gzdateandtimepicker.vue";
|
import gzapi from "./api/apiutil";
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// LIBS AND GLOBAL ITEMS
|
// LIBS AND GLOBAL ITEMS
|
||||||
@@ -20,6 +22,7 @@ import gzdateandtimepicker from "./components/gzdateandtimepicker.vue";
|
|||||||
//
|
//
|
||||||
Object.defineProperty(Vue.prototype, "$dayjs", { value: dayjs });
|
Object.defineProperty(Vue.prototype, "$dayjs", { value: dayjs });
|
||||||
Object.defineProperty(Vue.prototype, "$gzlocale", { value: locale });
|
Object.defineProperty(Vue.prototype, "$gzlocale", { value: locale });
|
||||||
|
Object.defineProperty(Vue.prototype, "$gzapi", { value: gzapi });
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// FORM VALIDATION
|
// FORM VALIDATION
|
||||||
|
|||||||
@@ -84,8 +84,6 @@
|
|||||||
<script>
|
<script>
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import api from "../api/apiutil";
|
|
||||||
//import dayjs from "dayjs";
|
|
||||||
//import _ from "../utils/libs/lodash.js";
|
//import _ from "../utils/libs/lodash.js";
|
||||||
export default {
|
export default {
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
@@ -136,7 +134,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getDataFromApi() {
|
getDataFromApi() {
|
||||||
var url = "Widget/" + this.$route.params.id;
|
var url = "Widget/" + this.$route.params.id;
|
||||||
api.get(url).then(res => {
|
this.$gzapi.get(url).then(res => {
|
||||||
this.obj = res.data;
|
this.obj = res.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user