浏览代码

fix: Data export block in Firefox (#1142)

Ahmad Kholid 2 年之前
父节点
当前提交
112c32c56e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/workflowEngine/blocksHandler/handlerExportData.js

+ 2 - 2
src/workflowEngine/blocksHandler/handlerExportData.js

@@ -35,12 +35,12 @@ async function exportData({ data, id }, { refData }) {
       delimiter: data.csvDelimiter || ',',
     },
     returnUrl: hasDownloadAccess,
-    returnBlob: !this.engine.isPopup,
+    returnBlob: !this.engine.isPopup && !this.engine.isMV2,
   });
 
   if (!this.engine.isPopup && !hasDownloadAccess) {
     throw new Error("Don't have download permission");
-  } else if (!this.engine.isPopup) {
+  } else if (!this.engine.isPopup && !this.engine.isMV2) {
     blobUrl = await blobToBase64(blobUrl);
   }