Commit 90e93ed6 authored by 田翔's avatar 田翔

fix: 文件名称修改为/截取方式

{
"name": "panda-xform",
"version": "6.0.21",
"description": "6.0.21 搜索地址代码优化",
"version": "6.0.22",
"description": "6.0.22 文件名称修改为/截取方式",
"keywords": [
"panda-xform"
],
......
......@@ -292,7 +292,7 @@ const FileUpload = (props) => {
let uid = i + '_' + Math.random()
let _obj = {
uid: uid,
name: list[i].split('\\').reverse()[0],
name: list[i].split('/').reverse()[0],
type: fileType === '图片' ? 'image/jpeg' : 'file',
status: 'done',
url: list[i]?.includes('http') ? list[i] : `${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`,
......
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