Sfoglia il codice sorgente

fix: 产物状态修改为正确样式

Jinyao 5 anni fa
parent
commit
ed4589ecd0
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      src/views/Project/Pipeline.vue

+ 1 - 6
src/views/Project/Pipeline.vue

@@ -288,12 +288,7 @@
           width="100"
         >
           <template #default="scope">
-            <template v-if="scope.row.status === '正常'">
-              <ElTag type="success">{{scope.row.status}}</ElTag>
-            </template>
-            <template v-else>
-              <ElTag type="danger">{{scope.row.status}}</ElTag>
-            </template>
+            <ElTag :type="scope.row.status.indexOf('正常') > -1 ? 'success' : 'danger'">{{scope.row.status}}</ElTag>
           </template>
         </ElTableColumn>
         <ElTableColumn width="60">