Skip to content

Commit ca69b19

Browse files
authored
解决文章详情不显示评论条数
1 parent 56eeefb commit ca69b19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frontend/blog-nuxt/components/Comment.vue

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ const reply = ref<Array<InstanceType<typeof Reply>>>([]);
245245
const { data } = await CommentApi.list(pager);
246246
watch(data, () => {
247247
if (data.value?.succeeded) {
248+
emit("getCommentCount", data.value?.data?.total ?? 0);
248249
state.count = data.value?.data?.total ?? 0;
249250
state.pages = data.value?.data?.pages ?? 0;
250251
if (pager.value.pageNo === 1) {

0 commit comments

Comments
 (0)