mirror of https://github.com/shunfei/cronsun
print \r\n
parent
afb694361a
commit
ed8ec6093e
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue