ソースを参照

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) => {