This commit is contained in:
2018-11-19 20:29:24 +00:00
parent 0871d38c63
commit cfcaf74a6a

View File

@@ -1,8 +1,8 @@
<template>
<v-layout row>
<v-flex xs12 sm6 offset-sm3>
<v-flex>
<h1>{{ lt("Log")}}</h1>
<v-textarea v-model="logText" full-width></v-textarea>
<v-textarea v-model="logText" full-width readonly></v-textarea>
</v-flex>
</v-layout>
</template>
@@ -13,6 +13,7 @@
//import lt from "../api/locale";
import store from "../store";
import lt from "../api/locale";
import _ from "../utils/libs/lodash.js";
export default {
data() {
return { logText: "" };
@@ -23,7 +24,11 @@ export default {
});
},
mounted() {
this.logText = store.state.logArray.toString();
var outText = "";
_.forEach(store.state.logArray, function(value) {
outText += value + "\n";
});
this.logText = outText;
},
methods: {
lt: function(key) {