瀏覽代碼

任务查看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