fix: แก้ไขชื่อไฟล์บันทึกผลรายชื่อผู้ผ่านการฝึกอบรม

This commit is contained in:
Warunee Tamkoo 2025-12-08 15:59:23 +07:00
parent 19eaa5173e
commit 88c0b41d51
2 changed files with 2 additions and 2 deletions

View file

@ -143,8 +143,8 @@ function sendDevalopRegistry() {
/** function ดาวน์โหลดไฟล์ต้นแบบ*/
function downloadFile() {
const link = document.createElement("a");
link.href = `${window.location.protocol}//${window.location.host}/default-บันทึกผล.xlsx`;
link.download = "default-บันทึกผล.xlsx";
link.href = `${window.location.protocol}//${window.location.host}/บันทึกผลรายชื่อผู้ผ่านการฝึกอบรม-template.xlsx`;
link.download = "บันทึกผลรายชื่อผู้ผ่านการฝึกอบรม-template.xlsx";
document.body.appendChild(link);
link.click();
document.body.removeChild(link);