แก้ ไม่push link

This commit is contained in:
STW_TTTY\stwtt 2024-04-25 17:08:02 +07:00
parent 23be6c5fb8
commit 9213e7e33b
2 changed files with 1 additions and 46 deletions

View file

@ -121,7 +121,6 @@ function selectAgency() {
/** บันทึกข้อมูล */
function onSubmit() {
const url = id.value
? config.API.kpiRoleMainList + `/${id.value}`
: config.API.kpiRoleMainList;
@ -154,7 +153,7 @@ function onSubmit() {
http[id.value ? "put" : "post"](url, body)
.then((res) => {
success($q, "บันทึกสำเร็จ");
router.push(`/KPI-indicator-role`);
id.value ? getDetail() : router.push(`/KPI-indicator-role`);
})
.finally(() => {
hideLoader();