From 7e40205d7f40dcfaad7f4c81bb13329983d3730b Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期一, 24 十月 2022 13:56:45 +0800
Subject: [PATCH] 修改

---
 src/views/specialWorkSystem/workTicket/wdsq/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/specialWorkSystem/workTicket/wdsq/index.vue b/src/views/specialWorkSystem/workTicket/wdsq/index.vue
index 7d480b5..4bad406 100644
--- a/src/views/specialWorkSystem/workTicket/wdsq/index.vue
+++ b/src/views/specialWorkSystem/workTicket/wdsq/index.vue
@@ -321,7 +321,7 @@
         // 填写表单
         const toApply = () => {
             router.push({
-                path: 'apply'
+                path: 'zysq'
             });
         };
 
@@ -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/pdf'})
+                    let blob = new Blob([res.data],{type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'})
                     link.style.display = "none";
                     link.href = URL.createObjectURL(blob); // 创建URL
-                    link.setAttribute("download", state.downLoadName + "作业证.pdf");
+                    link.setAttribute("download", state.downLoadName + "作业证.docx");
                     document.body.appendChild(link);
                     link.click();
                     document.body.removeChild(link);

--
Gitblit v1.9.2