浏览代码

Merge branch 'feature_first_pages' of https://git.yishihui.com/Web/contentCooper into feature_first_pages

jihuaqiang 1 周之前
父节点
当前提交
65901ae8ea
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/views/weData/gzh/index.tsx
  2. 2 2
      src/views/weData/qw/index.tsx

+ 2 - 2
src/views/weData/gzh/index.tsx

@@ -123,10 +123,10 @@ const Gzh: React.FC = () => {
         pageNum: pagination.current,
         pageSize: pagination.pageSize,
         type: type
-      }, { responseType: 'blob' });
+      });
 
       if (response.success && response.data) {
-        message.success('下载成功');
+        window.open(response.data as string);
       } else {
         message.error('下载失败');
       }

+ 2 - 2
src/views/weData/qw/index.tsx

@@ -129,10 +129,10 @@ const Qw: React.FC = () => {
         pageNum: pagination.current,
         pageSize: pagination.pageSize,
         type: type
-      }, { responseType: 'blob' });
+      });
 
       if (response.success && response.data) {
-        message.success('下载成功');
+        window.open(response.data as string);
       } else {
         message.error('下载失败');
       }