Fix host being null, causing the list to not be displayed (#4718)

This commit is contained in:
break60 2021-02-07 16:10:01 +08:00 committed by GitHub
parent adac9c1387
commit ac266eccaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@
<th scope="col" style="min-width: 135px">
<span>{{$t('Executor')}}</span>
</th>
<th scope="col" :style="{'min-width': ((Math.max(list.length && list[0].host.length, 22) + 40) * 6) + 'px'}">
<th scope="col" style="max-width: 600px">
<span>{{$t('host')}}</span>
</th>
<th scope="col" style="min-width: 230px">
@ -93,7 +93,7 @@
<span v-if="item.executorName">{{item.executorName}}</span>
<span v-else>-</span>
</td>
<td><span>{{item.host || '-'}}</span></td>
<td style="max-width: 600px"><span style="padding-right: 5px">{{item.host || '-'}}</span></td>
<td style="z-index: inherit;">
<div v-show="item.disabled">
<x-button type="info"

View File

@ -46,7 +46,7 @@
<th scope="col" style="min-width: 130px">
<span>{{$t('End Time')}}</span>
</th>
<th scope="col" :style="{'min-width': (Math.max(list.length && list[0].host.length, 22) * 6) + 'px'}">
<th scope="col" style="max-width: 600px">
<span>{{$t('host')}}</span>
</th>
<th scope="col" style="min-width: 70px">
@ -87,7 +87,7 @@
<span v-if="item.endTime">{{item.endTime | formatDate}}</span>
<span v-else>-</span>
</td>
<td><span>{{item.host || '-'}}</span></td>
<td style="max-width: 600px"><span style="padding-right: 5px">{{item.host || '-'}}</span></td>
<td><span>{{item.duration}}</span></td>
<td><span>{{item.retryTimes}}</span></td>
<td>