Browse Source

代码提交:
文件url获取修改

sunruiqi 2 năm trước cách đây
mục cha
commit
0fe18d2d1d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/views/modules/sys/project/AssessForm.vue

+ 3 - 1
src/views/modules/sys/project/AssessForm.vue

@@ -550,7 +550,9 @@
             console.log(this.dataListNew)
             this.inputForm.workAttachments = []
             this.dataListNew.forEach((item) => {
-              item.url = item.raw.url
+              if (item.id === null || item.id === undefined || item.id === '' ){
+                item.url = item.raw.url
+              }
               item.attachmentFlag = 'projectRecords'
               item.fileSize = item.size
               item.attachmentName = item.name