[release-1.6] fix: post list showing the number of post in the tags (#655)

Co-authored-by: 恪晨 <bo.wang1016@outlook.com>
Co-authored-by: Ryan Wang <i@ryanc.cc>
release-1.6
Halo Dev Bot 2022-10-23 21:58:55 +08:00 committed by GitHub
parent dbcbd1caae
commit 1ca091dc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
<template>
<a-tag :color="tag.color" :style="{ color: labelColor }"> {{ tag.name }}({{ tag.postCount }})</a-tag>
<a-tag :color="tag.color" :style="{ color: labelColor }">
{{ tag.name }}
<span v-if="tag.postCount !== undefined">({{ tag.postCount }})</span>
</a-tag>
</template>
<script>
import { isHex, isLight } from '@/utils/colorUtil'