Skip to content

Commit

Permalink
fix: 骨架屏问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 10, 2023
1 parent 8094a05 commit 21cc11d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/ArticlesList/Navigation/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const routeMap = {
<div v-if="route.query.sort && route.query.sort?.indexOf('hottest') !== -1" class="dorp-down-area">
<div class="drop-down">
<div class="dropdown-toggle" @click="isShow = !isShow">
{{ routeMap[route.query.sort as string] }}
{{ routeMap[String(route.query.sort)] }}
<div class="icon" i-carbon:caret-up :class="!isShow ? 'toggled' : ''" />
</div>
<ul v-if="isShow" class="dropdown-menu">
Expand Down
1 change: 1 addition & 0 deletions frontend/components/ArticlesList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const addArtListItem = useThrottle(async () => {
provide('artlist', artlist)
provide('ads', articleAds)
watch(route, async () => {
artlist.value = []
artlist.value = await useFetchPostData(route?.params, route.query?.sort, pagenum = 1)
}, { deep: true, immediate: true })
onMounted(() => {
Expand Down

0 comments on commit 21cc11d

Please sign in to comment.