fix: แก้ข้อมูลเเล้วไม่เปลี่ยน

This commit is contained in:
Net 2024-06-19 16:31:11 +07:00
parent 3ce1e0da44
commit 40e89268b6

View file

@ -722,6 +722,8 @@ async function fetchListEmployee(param?: {
async function toggleStatusEmployee(id: string, status: boolean) {
await employeeStore.editById(id, { status: !status ? 'ACTIVE' : 'INACTIVE' });
await fetchListEmployee();
}
async function toggleStatusCustomer(id: string, status: boolean) {