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

View File

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