From aff250139c038d9047ebbb95f9cefefc7ec7230d Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 12 Feb 2024 23:03:42 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20bug=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organizationalNew/components/tableTree.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ที่สร้างขึ้นหลังจากใช้งาน