This commit is contained in:
2019-07-24 15:22:19 +00:00
parent a14e64644d
commit 864c0ebab8
4 changed files with 30 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import Vue from "vue";
import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
import _ from "./libs/lodash.min.js";
/* Xeslint-disable */
const MaxLogLength = 100;
@@ -86,7 +86,7 @@ export default new Vuex.Store({
msg = Date.now() + "|" + msg;
state.logArray.push(msg);
if (state.logArray.length > MaxLogLength) {
state.logArray = _.drop(
state.logArray = window.$gz._.drop(
state.logArray,
state.logArray.length - MaxLogLength
);