| | |
| | | ...res, |
| | | }, |
| | | 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: uid, id: item.uid, name: item.name, status: 'done', url: domain + `/api/v1/attachment/download/${item.uid}?online=false` })) : [] |
| | | }); |
| | | |
| | | }) |
| | |
| | | showRemoveIcon: false |
| | | }, |
| | | onDownload: (file) => { |
| | | Fetch.attachmentDownload(file.id) |
| | | Fetch.attachmentDownload(file.uid) |
| | | .then(res => { |
| | | message.success("下载成功!"); |
| | | }); |