diff --git a/components/common/topic/main.vue b/components/common/topic/main.vue index 739c16c..e0cf6d3 100644 --- a/components/common/topic/main.vue +++ b/components/common/topic/main.vue @@ -31,7 +31,7 @@ methods: { handleSelectTopic(item) { this.$router.push({ - path: '/topic/' + item + path: `/topic/${item}?page=1` }); } } diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index 51ab6b5..eb2af02 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -182,7 +182,7 @@ export default { switch (item) { case 'topic': _ts.$router.push({ - path: '/topic/news' + path: '/topic/news?page=1' }) break; case 'github': diff --git a/pages/index.vue b/pages/index.vue index 104252f..095b4cd 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -4,31 +4,43 @@