แก้ ชื่อ

This commit is contained in:
STW_TTTY\stwtt 2024-10-01 15:16:35 +07:00
parent 9887bcb3b0
commit e6d3a5ce2f
2 changed files with 3 additions and 3 deletions

View file

@ -181,7 +181,7 @@ async function createURLUpload(id: string, file: any) {
const fileName = { fileName: file.name }; const fileName = { fileName: file.name };
await http await http
.post( .post(
config.API.file("IDP", "หลักฐาน", id), config.API.file("IDP", "ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล", id),
{ {
replace: false, replace: false,
fileList: fileName, fileList: fileName,

View file

@ -216,7 +216,7 @@ async function getListData() {
function onDownloadFile(id: string) { function onDownloadFile(id: string) {
showLoader(); showLoader();
http http
.get(config.API.file("IDP", "หลักฐาน", id)) .get(config.API.file("IDP", "ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล", id))
.then((res) => { .then((res) => {
if (res.data.length !== 0) { if (res.data.length !== 0) {
downloadUrl(id, res.data[0].fileName); downloadUrl(id, res.data[0].fileName);
@ -240,7 +240,7 @@ function downloadUrl(id: string, fileName: string) {
.get( .get(
config.API.fileByFile( config.API.fileByFile(
"IDP", "IDP",
"หลักฐาน", "ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล",
id, id,
fileName fileName
) )