Browse Source

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

tangning 4 months ago
parent
commit
7ebd3f416e
1 changed files with 6 additions and 6 deletions
  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") {
         if (typeof blob === "string") {
           a.href = blob;
           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);
           return click(a);
         } else {
         } else {
           a.href = URL.createObjectURL(blob);
           a.href = URL.createObjectURL(blob);