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 f293401 commit e978f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/components/ArticlesList/Item/Bar/Top.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { IAuthor, ITagItem } from '~~/types/IArticleItem'
defineProps<{
duration: string
tags?: ITagItem[]
duration?: string
tags: ITagItem[]
authorId?: IAuthor
adId?: string
}>()
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ArticlesList/Navigation/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</NuxtLink>
<NuxtLink
to="?sort=three_days_hottest"
:class="`${$route.query.sort === 'three_days_hottest' ? 'ht' : ''} last`"
:class="`${$route.query.sort?.indexOf('hottest') !== -1 ? 'ht' : ''} last`"
>
热榜
</NuxtLink>
Expand Down

0 comments on commit e978f09

Please sign in to comment.