Commit 6016b0c6 authored by 田翔's avatar 田翔

fix: 图片显示缩略图异常问题

parent 36c79ec8
{
"name": "panda-xform",
"version": "5.2.0",
"description": "5.2.0 支持xls格式",
"version": "5.2.1",
"description": "5.2.1 图片显示缩略图异常问题",
"keywords": [
"panda-xform"
],
......
......@@ -248,7 +248,7 @@ const FileUpload = (props) => {
status: 'done',
url: `${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`,
sourcePath: list[i],
thumbUrl: list[i].includes('svg') ? await convertUrlToBase64(`${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`) : list[i],
thumbUrl: list[i].includes('svg') ? await convertUrlToBase64(`${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`) : `${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`,
originFileObj: { "uid": uid },
"response": { "code": 0, "msg": "Ok", "data": list[i], "stackTrace": null },
"xhr": {},
......
......@@ -28,7 +28,8 @@
background: url('@{imgSrc}/Word.png');
background-size: 100% 100%;
}
&[type='xlsx'] {
&[type='xlsx'],
&[type='xls'] {
background: url('@{imgSrc}/Excel.png');
background-size: 100% 100%;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment