Sfoglia il codice sorgente

修复前端通用导出方法参数传值请求方式问题

RuoYi 4 anni fa
parent
commit
15a4a5350d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      ruoyi-ui/src/utils/request.js

+ 3 - 0
ruoyi-ui/src/utils/request.js

@@ -89,6 +89,9 @@ export function download(url, params, filename) {
     transformRequest: [(params) => {
       return tansParams(params)
     }],
+    headers: {
+        'Content-Type': 'application/x-www-form-urlencoded'
+    },
     responseType: 'blob'
   }).then((data) => {
     const content = data