This commit is contained in:
2020-10-07 15:30:34 +00:00
parent 2eb32a4fd8
commit 0185b6941c
12 changed files with 480 additions and 291 deletions

View File

@@ -130,8 +130,8 @@ export default new Vuex.Store({
msg = Date.now() + "|" + msg;
state.logArray.push(msg);
if (state.logArray.length > MaxLogLength) {
state.logArray = window.$gz._.drop(
state.logArray,
//remove beginning elements
state.logArray = state.logArray.slice(
state.logArray.length - MaxLogLength
);
}