Ver código fonte

fix:path去掉?参数

ananzhusen 1 ano atrás
pai
commit
2695c1e089
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/components/Header.vue

+ 1 - 1
src/views/components/Header.vue

@@ -1766,7 +1766,7 @@ const saveDownload = async () => {
           const res: Blob = await axios.get(item.url.startsWith('/')?(cdn+item.url):item.url, {
             responseType: 'blob',
           });
-          zip.file(item.path, res, { createFolders: true });
+          zip.file(item.path.split('?')[0], res, { createFolders: true });
         }catch(e){
           console.log(e);
         }