We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56eeefb commit ca69b19Copy full SHA for ca69b19
src/frontend/blog-nuxt/components/Comment.vue
@@ -245,6 +245,7 @@ const reply = ref<Array<InstanceType<typeof Reply>>>([]);
245
const { data } = await CommentApi.list(pager);
246
watch(data, () => {
247
if (data.value?.succeeded) {
248
+ emit("getCommentCount", data.value?.data?.total ?? 0);
249
state.count = data.value?.data?.total ?? 0;
250
state.pages = data.value?.data?.pages ?? 0;
251
if (pager.value.pageNo === 1) {
0 commit comments