feat: เพิ่ม flowStore.rotate()

This commit is contained in:
Net 2024-07-01 13:39:05 +07:00
parent 9e28d51d21
commit 557924ad6c
2 changed files with 18 additions and 3 deletions

View file

@ -224,7 +224,12 @@ watch(currentStatus, async () => {
<PaginationComponent
v-model:current-page="currentPageBranch"
v-model:max-page="maxPageBranch"
:fetch-data="async () => await fetchList()"
:fetch-data="
async () => {
await fetchList();
flowStore.rotate();
}
"
/>
</div>
</AppBox>

View file

@ -1553,7 +1553,12 @@ watch([inputSearch, currentStatus], async () => {
<PaginationComponent
v-model:current-page="currentPageCustomer"
v-model:max-page="maxPageCustomer"
:fetch-data="async () => await fetchListCustomer()"
:fetch-data="
async () => {
await fetchListCustomer();
flowStore.rotate();
}
"
/>
</div>
</template>
@ -1617,7 +1622,12 @@ watch([inputSearch, currentStatus], async () => {
<PaginationComponent
v-model:current-page="currentPageEmployee"
v-model:max-page="maxPageEmployee"
:fetch-data="async () => await fetchListEmployee()"
:fetch-data="
async () => {
await fetchListEmployee();
flowStore.rotate();
}
"
/>
</div>
</div>