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

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

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