Преглед изворни кода

refactor: 移除partial状态相关逻辑

何文松 пре 4 недеља
родитељ
комит
3df121219a
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      frontend/vue-demo/src/components/TaskCenter/TaskCenterPanel.vue

+ 3 - 3
frontend/vue-demo/src/components/TaskCenter/TaskCenterPanel.vue

@@ -233,21 +233,21 @@ onMounted(() => {
 function tagType(status) {
   if (status === 'processing') return 'primary'
   if (status === 'completed') return 'success'
-  if (status === 'failed' || status === 'partial') return 'danger'
+  if (status === 'failed') return 'danger'
   return 'info'
 }
 
 function statusClass(status) {
   if (status === 'processing') return 'status-processing'
   if (status === 'completed') return 'status-completed'
-  if (status === 'failed' || status === 'partial') return 'status-failed'
+  if (status === 'failed') return 'status-failed'
   return 'status-pending'
 }
 
 function statusText(status) {
   if (status === 'processing') return '运行中'
   if (status === 'completed') return '已完成'
-  if (status === 'failed' || status === 'partial') return '失败'
+  if (status === 'failed') return '失败'
   return '等待中'
 }