From bc647c5e5e95f3898e3af66c02d7911df8547b4e Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Sun, 29 Mar 2020 17:28:51 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/nsjcy/frontEnd/nsjcy --- SunshineIns/src/page/ApplyForEdit.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/SunshineIns/src/page/ApplyForEdit.jsx b/SunshineIns/src/page/ApplyForEdit.jsx index bd5a04b..66dbb56 100644 --- a/SunshineIns/src/page/ApplyForEdit.jsx +++ b/SunshineIns/src/page/ApplyForEdit.jsx @@ -69,7 +69,7 @@ }, disabled: res.status ? true : false, loading: false, - fileList: res.list ? res.list.map((item, index) => ({ uid: index, id: item.id, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.id}?online=false` })) : [] + fileList: res.list ? res.list.map((item, index) => ({ uid: item.uid, id: item.uid, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.uid}?online=false` })) : [] }); }) @@ -242,6 +242,7 @@ }, fileList: fileList, onDownload: (file) => { + console.log(file) Fetch.attachmentDownload(file.uid) .then(res => { message.success("下载成功!"); -- Gitblit v1.8.0