Explorar el Código

Merge branch 'v1.8.1' of http://192.168.0.115:3000/bill/public-fuse into v1.8.1

tangning hace 4 meses
padre
commit
7ebd3f416e
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      src/util/file-serve.ts

+ 6 - 6
src/util/file-serve.ts

@@ -96,12 +96,12 @@ export const saveAs: SaveAs =
 
         if (typeof blob === "string") {
           a.href = blob;
-          if (a.origin !== location.origin) {
-            if (corsEnabled(a.href)) {
-              return download(blob, name, opts);
-            }
-            a.target = "_blank";
-          }
+          // if (a.origin !== location.origin) {
+          //   if (corsEnabled(a.href)) {
+          //     return download(blob, name, opts);
+          //   }
+          //   a.target = "_blank";
+          // }
           return click(a);
         } else {
           a.href = URL.createObjectURL(blob);