From 8c50ffd479901dd3c4cf12f2b18d8f1fe49340a4 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Fri, 26 Sep 2025 23:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=84=E8=AE=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BDAPI=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/comment-section/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/comment-section/index.vue b/components/comment-section/index.vue index 1d15083..385b692 100644 --- a/components/comment-section/index.vue +++ b/components/comment-section/index.vue @@ -82,7 +82,7 @@ // 发表评论 const handleCreateComment = async () => { - const res = await createComment({ relationId: props.relationId, content: commentContent.value, projectId: props.projectId, type: props.projectId ? 1 : 2 }) + const res = await createComment({ relationId: props.relationId, content: commentContent.value, projectId: props.projectId || props.relationId, type: props.projectId ? 1 : 2 }) if (res.code === 0) { commentContent.value = '' query.value.pageNo = 1