duy 2 years ago
parent
commit
b91d02ea7b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/tasks/hc-data.vue

+ 3 - 1
src/views/tasks/hc-data.vue

@@ -156,7 +156,9 @@ const rowTaskName = async (row) => {
             approvalType: row.approvalType,
             approvalType: row.approvalType,
         })
         })
         if (!error && code === 200) {
         if (!error && code === 200) {
-            const approvalFileList = getArrValue(data['approvalFileList'])
+             if(approvalFileList[approvalFileList.length-1].fileName===''){
+                 approvalFileList.pop()
+             }
             taskReviewData.value = approvalFileList
             taskReviewData.value = approvalFileList
             if (approvalFileList.length > 0) {
             if (approvalFileList.length > 0) {
                 batchPdfUrl.value = approvalFileList[0].fileUrl
                 batchPdfUrl.value = approvalFileList[0].fileUrl