แก้ API

This commit is contained in:
STW_TTTY\stwtt 2024-08-23 14:38:43 +07:00
parent 20049939c0
commit 20ea243eaf
2 changed files with 2 additions and 1 deletions

View file

@ -101,6 +101,7 @@ export default {
`${appeal}/admin?status=${status}&type=${type}&year=${year}&page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
appealAdd: () => `${appeal}`,
appealByID: (id: string) => `${appeal}/${id}`,
appealByIDGet: (id: string) => `${appeal}/admin/${id}`,
appealUpLoadFile: (id: string) => `${appeal}/file/${id}`,
appealDeleteFile: (id: string, docId: string) =>
`${appeal}/file/${id}/${docId}`,

View file

@ -86,7 +86,7 @@ async function onSubmit(data: any) {
function getData() {
showLoader();
http
.get(config.API.appealByID(id.value))
.get(config.API.appealByIDGet(id.value))
.then((res) => {
const dataList = res.data.result;
data.id = dataList.id;