diff --git a/src/modules/02_organizationalNew/components/tableTree.vue b/src/modules/02_organizationalNew/components/tableTree.vue index 4df6c0097..eff6acd26 100644 --- a/src/modules/02_organizationalNew/components/tableTree.vue +++ b/src/modules/02_organizationalNew/components/tableTree.vue @@ -446,7 +446,8 @@ async function genReportDoc(data: any) { // // สร้างลิงก์เพื่อดาวน์โหลดไฟล์ link.href = url; link.download = `name.docx`; // กำหนดชื่อไฟล์ที่จะดาวน์โหลด - import.meta.env?.document.body.appendChild(link.value); + // import.meta.env?.document.body.appendChild(link.value); + document.body.appendChild(link.value); link.click(); // ลบ URL ที่สร้างขึ้นหลังจากใช้งาน