优化评论功能API接口参数处理
This commit is contained in:
@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
// 发表评论
|
// 发表评论
|
||||||
const handleCreateComment = async () => {
|
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) {
|
if (res.code === 0) {
|
||||||
commentContent.value = ''
|
commentContent.value = ''
|
||||||
query.value.pageNo = 1
|
query.value.pageNo = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user