fix: แก้ เปลี่ยนสถานะเเล้วไม่ อัพเดท
This commit is contained in:
parent
26d6c58390
commit
f3b0dc4e1d
1 changed files with 7 additions and 2 deletions
|
|
@ -469,7 +469,7 @@ async function toggleStatusProduct(id: string, status: Status) {
|
|||
status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE',
|
||||
});
|
||||
|
||||
await fetchListOfProduct();
|
||||
await alternativeFetch();
|
||||
flowStore.rotate();
|
||||
}
|
||||
|
||||
|
|
@ -478,7 +478,7 @@ async function toggleStatusService(id: string, status: Status) {
|
|||
status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE',
|
||||
});
|
||||
|
||||
await fetchListOfService();
|
||||
await alternativeFetch();
|
||||
flowStore.rotate();
|
||||
}
|
||||
async function toggleStatusType(id: string, status: Status) {
|
||||
|
|
@ -973,6 +973,11 @@ async function fetchStatus() {
|
|||
}
|
||||
|
||||
async function alternativeFetch() {
|
||||
|
||||
|
||||
console.log('asdasds');
|
||||
|
||||
|
||||
if (productAndServiceTab.value === 'all') {
|
||||
await fetchListOfProductAndService();
|
||||
flowStore.rotate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue