浏览代码

fix:下载修改

lph 1 年之前
父节点
当前提交
bfa350e341
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      zkqy-ui/src/views/system/engineeringManage/index.vue

+ 4 - 1
zkqy-ui/src/views/system/engineeringManage/index.vue

@@ -413,7 +413,10 @@ export default {
       });
       return service
         .get(url, params, {
-          headers: { "Content-Disposition": "attachment" },
+          headers: {
+            "Content-Disposition": `attachment;filename="${filename}"`,
+            "Content-Type": `application/octet-stream`,
+          },
           responseType: "blob",
         })
         .then(async (data) => {