优化评论功能API接口参数处理

This commit is contained in:
wangqiao
2025-09-26 23:06:31 +08:00
parent ca7982c974
commit 8c50ffd479

View File

@ -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