แก้ API
This commit is contained in:
parent
20049939c0
commit
20ea243eaf
2 changed files with 2 additions and 1 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue