This commit is contained in:
2018-11-16 00:59:10 +00:00
parent f5724f40cb
commit 869322032e
3 changed files with 16 additions and 6 deletions

View File

@@ -14,5 +14,8 @@ export default {
msg = Date.now() + "|" + msg;
buffer.push(msg);
store.commit("setLog", buffer.toArray());
},
getLogText(){
//TODO: iterate the array from store, convert timestamps to local date and time and arrange as a block of multiline text to display in the UI
}
};

View File

@@ -7,7 +7,7 @@
<script>
/* xeslint-disable */
//import logger from "../utils/logit";
import logger from "../utils/logit";
//import lt from "../api/locale";
//import store from "../store";
export default {
@@ -18,7 +18,7 @@ export default {
mounted() {},
methods: {
log: function() {
return this.$store.state.logBuffer;
logger.getLogText();
}
}
};