mirror of https://github.com/halo-dev/halo-admin
feat: display post count under category and tag
parent
78794aa6ba
commit
35f51fce2b
|
@ -88,12 +88,10 @@ function onDelete(category: CategoryTree) {
|
||||||
</div>
|
</div>
|
||||||
<template #popper> 删除中</template>
|
<template #popper> 删除中</template>
|
||||||
</FloatingTooltip>
|
</FloatingTooltip>
|
||||||
<!--TODO: Get post count-->
|
|
||||||
<div
|
<div
|
||||||
v-if="false"
|
|
||||||
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
|
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
|
||||||
>
|
>
|
||||||
20 篇文章
|
{{ category.status?.posts?.length || 0 }} 篇文章
|
||||||
</div>
|
</div>
|
||||||
<time class="text-sm text-gray-500">
|
<time class="text-sm text-gray-500">
|
||||||
{{ formatDatetime(category.metadata.creationTimestamp) }}
|
{{ formatDatetime(category.metadata.creationTimestamp) }}
|
||||||
|
|
|
@ -211,12 +211,10 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
<template #popper> 删除中</template>
|
<template #popper> 删除中</template>
|
||||||
</FloatingTooltip>
|
</FloatingTooltip>
|
||||||
<!--TODO: Get post count-->
|
|
||||||
<div
|
<div
|
||||||
v-if="false"
|
|
||||||
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
|
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
|
||||||
>
|
>
|
||||||
20 篇文章
|
{{ tag.status?.posts?.length || 0 }} 篇文章
|
||||||
</div>
|
</div>
|
||||||
<time class="text-sm text-gray-500">
|
<time class="text-sm text-gray-500">
|
||||||
{{ formatDatetime(tag.metadata.creationTimestamp) }}
|
{{ formatDatetime(tag.metadata.creationTimestamp) }}
|
||||||
|
|
Loading…
Reference in New Issue