เพิ่ม noti เเล้ว fetch ข้อมูลใหม่ตอนลบรายการลา
This commit is contained in:
parent
96f35514bd
commit
092eb56041
1 changed files with 3 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ const {
|
|||
date2Thai,
|
||||
monthYear2Thai,
|
||||
dialogRemove,
|
||||
success,
|
||||
} = mixin;
|
||||
const LeaveData = useLeaveStore();
|
||||
const router = useRouter();
|
||||
|
|
@ -117,7 +118,8 @@ const onClickDelete = async (id: string) => {
|
|||
await http
|
||||
.delete(config.API.leaveUserId(id))
|
||||
.then(async (res) => {
|
||||
console.log("delete");
|
||||
success($q, "ลบข้อมูลสำเร็จ");
|
||||
fetchDataTable();
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue