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