Explorar el Código

任务查看pdf无法显示

duy hace 2 años
padre
commit
72ef577fdf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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