|
@@ -43,7 +43,11 @@ function AttachmentTable(props) {
|
|
},
|
|
},
|
|
];
|
|
];
|
|
const downloadFile = record => {
|
|
const downloadFile = record => {
|
|
- window.location.href = `${record.url}`;
|
|
|
|
|
|
+ let urls = record.url.split('/');
|
|
|
|
+ let lastIndex = urls.length - 1;
|
|
|
|
+ // 对文件名编码
|
|
|
|
+ urls[lastIndex] = encodeURIComponent(urls[lastIndex]);
|
|
|
|
+ window.location.href = urls.join('/');
|
|
};
|
|
};
|
|
const deleteFile = id => {
|
|
const deleteFile = id => {
|
|
Modal.confirm({
|
|
Modal.confirm({
|