fix: page

This commit is contained in:
Methapon Metanipat 2024-09-27 12:11:31 +07:00
parent b246e9e6c1
commit 494a387e08

View file

@ -1311,8 +1311,9 @@ async function enterGroup(
currentIdGrop.value = id;
currentNoAction.value = status === 'INACTIVE';
pathTypeName.value = name;
await fetchListOfService();
await fetchListOfProduct();
if (productMode.value === 'service') await fetchListOfService();
if (productMode.value === 'product') await fetchListOfProduct();
if (toService) await enterNext('service');
else productMode.value = 'group';
@ -1349,6 +1350,8 @@ async function enterNext(type: 'service' | 'product') {
filterStat.value.push('group');
filterStat.value.push('service');
}
if (productMode.value === 'service') await fetchListOfService();
if (productMode.value === 'product') await fetchListOfProduct();
flowStore.rotate();
}