From 7ebad0a2abfc413514a73eb86100fb479edd2e14 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期三, 19 十月 2022 14:07:35 +0800 Subject: [PATCH] Default Changelist --- src/views/specialWorkSystem/workTicket/wdsq/index.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/specialWorkSystem/workTicket/wdsq/index.vue b/src/views/specialWorkSystem/workTicket/wdsq/index.vue index 25c6286..7d480b5 100644 --- a/src/views/specialWorkSystem/workTicket/wdsq/index.vue +++ b/src/views/specialWorkSystem/workTicket/wdsq/index.vue @@ -471,10 +471,10 @@ axios.post(import.meta.env.VITE_API_URL + `/work/apply/printing`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{ if (res) { const link = document.createElement('a') - let blob = new Blob([res.data],{type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}) + let blob = new Blob([res.data],{type: 'application/pdf'}) link.style.display = "none"; link.href = URL.createObjectURL(blob); // 创建URL - link.setAttribute("download", state.downLoadName + "作业证.docx"); + link.setAttribute("download", state.downLoadName + "作业证.pdf"); document.body.appendChild(link); link.click(); document.body.removeChild(link); -- Gitblit v1.9.2