Browse Source

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

之前注释掉的解码逻辑可能导致特殊字符文件名显示不正确,现恢复使用decodeURIComponent确保文件名正确显示
lsc 1 day ago
parent
commit
005d100feb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/hooks/useImport.ts

+ 2 - 2
src/hooks/useImport.ts

@@ -924,8 +924,8 @@ export default () => {
         return
         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)
       console.log('aws-name:', name)
       
       
       if (!name) {
       if (!name) {