vuepress-reco / vuepress-theme-reco

🎨 This is the repo for vuepress-theme-reco 2.
https://vuepress-theme-reco.recoluan.com
MIT License
539 stars 175 forks source link

Why is there a "/1" at the end of category link? #156

Closed franklinqin0 closed 1 year ago

franklinqin0 commented 1 year ago

https://github.com/vuepress-reco/vuepress-theme-reco/blob/61c8e7a0b8e73ed8d89679c28de5daf764d6f1ff/packages/vuepress-theme-reco/src/client/components/Home/Blog.vue#L17

I find it weird that the "/1" is there. Why don't we just do the following?

<router-link class="category-link" :to="`/categories/${key}/`">
recoluan commented 1 year ago

Because the data is already paged, it jumps to the first page by default.