Explorar el Código

fix:path去掉?参数

ananzhusen hace 1 año
padre
commit
2695c1e089
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
         }