แก้ ไม่push link
This commit is contained in:
parent
23be6c5fb8
commit
9213e7e33b
2 changed files with 1 additions and 46 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue