This commit is contained in:
@@ -1 +1 @@
|
||||
src/utils/libs/*.js
|
||||
src/libs/*.js
|
||||
@@ -1,7 +1,7 @@
|
||||
/* xeslint-disable */
|
||||
import store from "../store";
|
||||
import apiUtil from "./apiutil";
|
||||
import _ from "../utils/libs/lodash.js";
|
||||
import _ from "../libs/lodash.min.js";
|
||||
|
||||
export default {
|
||||
get(key) {
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from "vue";
|
||||
import Vuex from "vuex";
|
||||
import createPersistedState from "vuex-persistedstate";
|
||||
import _ from "./utils/libs/lodash.js";
|
||||
import _ from "./libs/lodash.min.js";
|
||||
|
||||
const MaxLogLength = 100;
|
||||
|
||||
|
||||
@@ -8,10 +8,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
import _ from "../utils/libs/lodash.js";
|
||||
/* Xeslint-disable */
|
||||
export default {
|
||||
created() {
|
||||
var outText = "";
|
||||
this.$_.forEach(this.$store.state.logArray, function(value) {
|
||||
outText += value + "\n";
|
||||
});
|
||||
this.logText = outText;
|
||||
|
||||
this.$gzlocale
|
||||
.fetch(["Log"])
|
||||
.then(() => (this.ready = true))
|
||||
@@ -21,13 +26,6 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return { logText: "", ready: false };
|
||||
},
|
||||
mounted() {
|
||||
var outText = "";
|
||||
_.forEach(this.$store.state.logArray, function(value) {
|
||||
outText += value + "\n";
|
||||
});
|
||||
this.logText = outText;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user