Explorar el Código

🎨 修改上传文件显示细节问题

快乐的梦鱼 hace 6 días
padre
commit
dcf4935f77
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/dynamicf/UploadImageFormItem.ts

+ 1 - 1
src/components/dynamicf/UploadImageFormItem.ts

@@ -150,7 +150,7 @@ export function stringUrlsToUploadedItems(arr: string[]) : FileItem[] {
       return undefined;
     return {
       uid: k.toString(),
-      name: i ? StringUtils.path.getFileName(i) : '',
+      name: i ? decodeURIComponent(StringUtils.path.getFileName(i)) : '',
       status: 'done',
       url: i,
       size: 0,