소스 검색

fix: 恢复使用decodeURIComponent解码文件名

之前注释掉的解码逻辑可能导致特殊字符文件名显示不正确,现恢复使用decodeURIComponent确保文件名正确显示
lsc 3 달 전
부모
커밋
005d100feb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/hooks/useImport.ts

+ 2 - 2
src/hooks/useImport.ts

@@ -924,8 +924,8 @@ export default () => {
         return
       }
       
-      // const name = decodeURIComponent(url.split(bucketUrl)[1])
-      const name = url.split(bucketUrl)[1]
+      const name = decodeURIComponent(url.split(bucketUrl)[1])
+      // const name = url.split(bucketUrl)[1]
       console.log('aws-name:', name)
       
       if (!name) {