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