Skip to content

Commit

Permalink
fix: fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
leonid committed Nov 14, 2024
1 parent e4349b9 commit 7922ffe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 51 deletions.
10 changes: 4 additions & 6 deletions packages/examples/demos/pagination/PaginationWithRouter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@
// // const router = useRouter();
// const currentPage = computed(() => (route.query.page ? +route.query.page : 1));
import type { LocationQueryRaw } from 'vue-router';
/**
* Merge existing query with pagination params
*/
function getAcvPaginationQuery(query: LocationQueryRaw, page: number): LocationQueryRaw {
// don't show first page in url
return { ...query, page: page > 1 ? page : undefined };
}
// function getAcvPaginationQuery(query: LocationQueryRaw, page: number): LocationQueryRaw {
// // don't show first page in url
// return { ...query, page: page > 1 ? page : undefined };
// }
async function setActivePage() {
// await router.push({ query: getAcvPaginationQuery(route.query, newPage) });
Expand Down
63 changes: 18 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7922ffe

Please sign in to comment.