lisy 2 ヶ月 前
コミット
dbd75b73ce
2 ファイル変更2 行追加1 行削除
  1. 1 0
      src/utils/request.ts
  2. 1 1
      src/views/dgtmedicine/member/index.vue

+ 1 - 0
src/utils/request.ts

@@ -182,6 +182,7 @@ export function download(url: any, params = {}, fileName = '') {
     const config: any = {}
     config.headers = { 'Content-Type': 'application/x-www-form-urlencoded' };
     config.responseType = 'blob';
+    config.params = params;
     return service
         .get(url, config)
         .then(async (resp: any) => {

+ 1 - 1
src/views/dgtmedicine/member/index.vue

@@ -181,7 +181,7 @@ const resetQuery = () => {
 };
 const handleExport = () => {
     proxy?.download(
-        'dgtmedicine/member/exportMemberList',
+        `dgtmedicine/member/exportMemberList?`,
         {
             ...queryParams.value
         },