เป้าหมาย(ยังไม่เสร็จ)

This commit is contained in:
oat_dev 2024-04-11 16:07:59 +07:00
parent 9f01c9ac4c
commit 4d5c98fa57
2 changed files with 199 additions and 116 deletions

View file

@ -49,7 +49,7 @@ function updateAgency(name: string) {
async function fetchData(id: string) {
showLoader();
await http
.get(config.API.developmentBasicInfoById(id))
.get(config.API.developmentMainTab("tab1", id))
.then(async (res) => {
const data = res.data.result;
formData.year = data.year;
@ -67,7 +67,7 @@ async function fetchData(id: string) {
async function editData(id: string) {
await http
.put(config.API.developmentBasicInfoById(id), {
.put(config.API.developmentMainTab("tab1", id), {
year: formData.year,
reason: formData.reason,
projectName: formData.projectName,