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>
|
||||
<template #popper> 删除中</template>
|
||||
</FloatingTooltip>
|
||||
<!--TODO: Get post count-->
|
||||
<div
|
||||
v-if="false"
|
||||
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
|
||||
>
|
||||
20 篇文章
|
||||
{{ category.status?.posts?.length || 0 }} 篇文章
|
||||
</div>
|
||||
<time class="text-sm text-gray-500">
|
||||
{{ formatDatetime(category.metadata.creationTimestamp) }}
|
||||
|
|
|
@ -211,12 +211,10 @@ onMounted(async () => {
|
|||
</div>
|
||||
<template #popper> 删除中</template>
|
||||
</FloatingTooltip>
|
||||
<!--TODO: Get post count-->
|
||||
<div
|
||||
v-if="false"
|
||||
class="cursor-pointer text-sm text-gray-500 hover:text-gray-900"
|
||||
>
|
||||
20 篇文章
|
||||
{{ tag.status?.posts?.length || 0 }} 篇文章
|
||||
</div>
|
||||
<time class="text-sm text-gray-500">
|
||||
{{ formatDatetime(tag.metadata.creationTimestamp) }}
|
||||
|
|
Loading…
Reference in New Issue