refactor: 08 => reset page and data on search or status filter change in request list
This commit is contained in:
parent
1fc6b39e37
commit
2448f4b228
1 changed files with 5 additions and 3 deletions
|
|
@ -102,9 +102,11 @@ onMounted(async () => {
|
|||
await fetchList({ rotateFlowId: true });
|
||||
});
|
||||
|
||||
watch([() => pageState.inputSearch, () => pageState.statusFilter], () =>
|
||||
fetchList({ rotateFlowId: true }),
|
||||
);
|
||||
watch([() => pageState.inputSearch, () => pageState.statusFilter], () => {
|
||||
page.value = 1;
|
||||
data.value = [];
|
||||
fetchList({ rotateFlowId: true });
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<div class="column full-height no-wrap">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue