Skip to content

Commit

Permalink
feat: 导航栏标签与文章列表交互
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 6, 2023
1 parent c0c1424 commit ad46954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2023-02-06T07:22:04.571Z"
"x-generation-date": "2023-02-06T08:17:00.995Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/ArticlesList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ provide('artlist', artlist)
provide('ads', articleAds)
watch(route, async (r) => {
const paths = route.path.split('/')
const queryParams = {
const params = {
type: paths[1],
tag: paths[2],
}
artlist.value = []
artlist.value = await useFetchPostData(queryParams, route.query?.sort, pagenum = 1)
artlist.value = await useFetchPostData(params, route.query?.sort, pagenum = 1)
}, { deep: true, immediate: true })
onMounted(() => {
(window as any).addEventListener('scroll', addArtListItem)
Expand Down

0 comments on commit ad46954

Please sign in to comment.