fix bug คำร้องขอแก้ไขทะเบียนประวัติ tab IDP ดาวโหลดเอกสารหลักฐาน

This commit is contained in:
Warunee Tamkoo 2025-06-12 10:10:01 +07:00
parent 48c6a9e11d
commit ec8dc22406

View file

@ -226,13 +226,7 @@ function onclickEdit(id: string) {
function onDownloadFile(id: string) {
showLoader();
http
.get(
config.API.file(
"ระบบทะเบียนประวัติ",
"เอกสารหลักฐานคำร้องขอแก้ไขข้อมูล",
id
)
)
.get(config.API.file("IDP", "ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล", id))
.then(async (res) => {
if (res.data.length !== 0) {
await downloadUrl(id, res.data[0].fileName);
@ -255,8 +249,8 @@ async function downloadUrl(id: string, fileName: string) {
await http
.get(
config.API.fileByFile(
"ระบบทะเบียนประวัติ",
"เอกสารหลักฐานคำร้องขอแก้ไขข้อมูล",
"IDP",
"ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล",
id,
fileName
)