Selaa lähdekoodia

任务查看pdf无法显示

duy 2 vuotta sitten
vanhempi
commit
72ef577fdf
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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