소스 검색

任务查看pdf无法显示

duy 2 년 전
부모
커밋
72ef577fdf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/tasks/hc-data.vue

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

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