lph 1 rok pred
rodič
commit
bfa350e341

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