Skip to content

Commit

Permalink
fix: 路由请求参数不更新情况
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 20, 2023
1 parent 2ab24ae commit f293401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/ArticlesList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const addArtListItem = useThrottle(async () => {
})
provide('artlist', artlist)
provide('ads', articleAds)
watch(route, async () => {
watch([() => route.query, () => route.params], async () => {
isLoading.value = true
artlist.value = await useFetchPostData(route?.params, route.query?.sort, pagenum = 1)
isLoading.value = false
Expand Down

0 comments on commit f293401

Please sign in to comment.