mirror of https://github.com/halo-dev/halo-admin
[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
parent
dbcbd1caae
commit
1ca091dc1f
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue