This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user