Use v-if/v-else instead of ternery logic
This commit is contained in:
parent
f33a650d64
commit
8f6989d902
@ -28,11 +28,10 @@
|
||||
<div v-else-if="isJobEventType(event, 'ret')">
|
||||
{{ event.data.jid }}: {{ event.data.fun }}
|
||||
{{ event.data.fun_args }} => {{ event.data.retcode }}
|
||||
<pre>{{
|
||||
typeof event.data.return === 'string'
|
||||
? event.data.return
|
||||
: JSON.stringify(event.data.return, null, 2)
|
||||
<pre v-if="typeof event.data.return === 'string'">{{
|
||||
event.data.return
|
||||
}}</pre>
|
||||
<pre v-else>{{ JSON.stringify(event.data.return, null, 2) }}</pre>
|
||||
</div>
|
||||
</details>
|
||||
</details>
|
||||
|
Loading…
Reference in New Issue
Block a user