소스 검색

fix: partial状态也显示为失败

何文松 4 주 전
부모
커밋
0939d89cc2
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      frontend/vue-demo/src/components/TaskCenter/TaskCenterPanel.vue

+ 1 - 2
frontend/vue-demo/src/components/TaskCenter/TaskCenterPanel.vue

@@ -247,8 +247,7 @@ function statusClass(status) {
 function statusText(status) {
   if (status === 'processing') return '运行中'
   if (status === 'completed') return '已完成'
-  if (status === 'failed') return '失败'
-  if (status === 'partial') return '部分失败'
+  if (status === 'failed' || status === 'partial') return '失败'
   return '等待中'
 }