Skip to content

Commit

Permalink
Merge pull request #209 from MarleneJiang/issue-191-优化一下文章列表代码和性能
Browse files Browse the repository at this point in the history
fix: 作者框三角颜色问题
  • Loading branch information
MarleneJiang committed Feb 10, 2023
2 parents 975d3a1 + 82da355 commit 18a192d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Binary file modified backend/.tmp/data.db
Binary file not shown.
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-10T06:15:24.468Z"
"x-generation-date": "2023-02-10T09:47:22.758Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/ArticlesList/Item/AuthorCard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ defineProps<{
}
.author_card::after {
border: 10px solid transparent;
@apply w-0 h-0 border-[10px] border-t-white
border-top-color: white;
@apply w-0 h-0
@apply absolute bottom-0 left-1/2 content-none -translate-x-1/2 translate-y-full
@apply dark:border-t-jj_bg_gray
}
Expand Down
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

1 comment on commit 18a192d

@vercel
Copy link

@vercel vercel bot commented on 18a192d Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.