print \r\n

pull/49/head
Doflatango 2017-12-08 15:51:42 +08:00
parent afb694361a
commit ed8ec6093e
1 changed files with 7 additions and 1 deletions

View File

@ -43,7 +43,7 @@
<h4 class="ui header">{{$L('command')}}</h4>
<pre class="ui grey inverted segment">{{log.command}}</pre>
<h4 class="ui header">{{$L('output')}}</h4>
<pre class="ui inverted segment">{{log.output}}</pre>
<pre class="ui inverted segment">{{printResult}}</pre>
</div>
</template>
@ -69,6 +69,12 @@ export default {
}
},
computed: {
printResult(){
return this.log.output.replace("\r\n", "^M\r\n");
}
},
mounted: function(){
var vm = this;
this.$rest.GET('log/'+this.$route.params.id).