แก้ API

This commit is contained in:
STW_TTTY\stwtt 2024-09-02 11:04:42 +07:00
parent c01031c687
commit cfd79ee40b
11 changed files with 18 additions and 17 deletions

View file

@ -154,7 +154,7 @@ function onSubmit() {
};
try {
const method = isStatusEdit.value ? "patch" : "post";
await http[method](config.API.devStrategy, formData);
await http[method](config.API.devStrategy+`/edit`, formData);
fetchDataTree();
success($q, "บันทึกข้อมูลสำเร็จ");
} catch (err) {