liusheng
2026-11-02 d6aa663043a23bb37f1c712a19424690c5a2062f
src/utils/request.js
@@ -148,9 +148,22 @@
  }
);
// 通用请求 Blob(表单格式),用于解析后端导出的 Excel
export function downloadBlob(url, params, config) {
  return service.post(url, params, {
    transformRequest: [
      (params) => {
        return tansParams(params);
      },
    ],
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    responseType: "arraybuffer",
    ...config,
  });
}
// 通用下载方法
export function download(url, params, filename, config) {
  downloadLoadingInstance = Loading.service({
export function download(url, params, filename, config) {  downloadLoadingInstance = Loading.service({
    text: "正在下载数据,请稍候",
    spinner: "el-icon-loading",
    background: "rgba(0, 0, 0, 0.7)",