From 088b48c3b40beffe597a2fb79f398268c5b92073 Mon Sep 17 00:00:00 2001 From: Mister-Hope Date: Fri, 17 Jan 2025 14:08:42 +0800 Subject: [PATCH] chore: tweaks --- .../client/src/components/CommentCard.vue | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/packages/client/src/components/CommentCard.vue b/packages/client/src/components/CommentCard.vue index f85429b60e7..af73c6b888c 100644 --- a/packages/client/src/components/CommentCard.vue +++ b/packages/client/src/components/CommentCard.vue @@ -15,30 +15,24 @@ import { useLikeStorage, useUserInfo } from '../composables/index.js'; import { getTimeAgo, isLinkHttp } from '../utils/index.js'; import { configKey } from '../config/index.js'; -const props = withDefaults( - defineProps<{ - /** - * Comment data - */ - comment: WalineComment; - /** - * Current comment to be edited - */ - edit?: WalineComment | null; - /** - * Root comment id - */ - rootId: number; - /** - * Current comment to be replied - */ - reply?: WalineComment | null; - }>(), - { - edit: null, - reply: null, - }, -); +const props = defineProps<{ + /** + * Comment data + */ + comment: WalineComment; + /** + * Current comment to be edited + */ + edit?: WalineComment | null; + /** + * Root comment id + */ + rootId: number; + /** + * Current comment to be replied + */ + reply?: WalineComment | null; +}>(); const emit = defineEmits<{ (event: 'log'): void;