Update pagination

This commit is contained in:
marzban-dev
2025-01-30 01:10:22 +03:30
parent 3946af73d2
commit ec0f1c9e10
+3 -6
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import type { GetProductsFilters } from "~/composables/api/products/useGetProducts";
// types
@@ -17,9 +16,9 @@ defineProps<Props>();
// state
const params: GetProductsFilters = inject("params");
const params : any = inject("params");
const page = ref(Number(params.page) ?? 1);
const page = ref(params?.page ? Number(params.page) : 1);
// watch
@@ -82,6 +81,4 @@ watch(
</PaginationFirst>
</PaginationList>
</PaginationRoot>
</template>
<style scoped></style>
</template>