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