เพิ่ม 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,
|
date2Thai,
|
||||||
monthYear2Thai,
|
monthYear2Thai,
|
||||||
dialogRemove,
|
dialogRemove,
|
||||||
|
success,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
const LeaveData = useLeaveStore();
|
const LeaveData = useLeaveStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
@ -117,7 +118,8 @@ const onClickDelete = async (id: string) => {
|
||||||
await http
|
await http
|
||||||
.delete(config.API.leaveUserId(id))
|
.delete(config.API.leaveUserId(id))
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
console.log("delete");
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
|
fetchDataTable();
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue