diff --git a/frontend/src/api/modules/bug-management/index.ts b/frontend/src/api/modules/bug-management/index.ts index 7334aeb733..5665b151d1 100644 --- a/frontend/src/api/modules/bug-management/index.ts +++ b/frontend/src/api/modules/bug-management/index.ts @@ -97,7 +97,7 @@ export function followBug(id: string, isFollow: boolean) { // 创建评论 export function createOrUpdateComment(data: CommentParams) { - if (data.id || data.event !== 'REPLAY') { + if (data.fetchType === 'UPDATE') { return MSR.post({ url: bugURL.postUpdateCommentUrl, data }); } return MSR.post({ url: bugURL.postCreateCommentUrl, data }); diff --git a/frontend/src/components/business/ms-comment/comment-item.vue b/frontend/src/components/business/ms-comment/comment-item.vue index b61e1eadbd..ab3083a73c 100644 --- a/frontend/src/components/business/ms-comment/comment-item.vue +++ b/frontend/src/components/business/ms-comment/comment-item.vue @@ -3,7 +3,7 @@