diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index 54d6656e66..97279de7be 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -208,11 +208,11 @@ @@ -612,20 +612,14 @@ }; async function publishHandler(currentContent: string) { - const regex = /data-id="([^"]*)"/g; - const matchesNotifier = currentContent.match(regex); - let notifiers = ''; - if (matchesNotifier?.length) { - notifiers = matchesNotifier.map((match) => match.replace('data-id="', '').replace('"', '')).join(';'); - } try { const params = { bugId: detailInfo.value.id, - notifier: notifiers, + notifier: noticeUserIds.value.join(';'), replyUser: '', parentId: '', content: currentContent, - event: notifiers ? 'AT' : 'COMMENT', // 任务事件(仅评论: ’COMMENT‘; 评论并@: ’AT‘; 回复评论/回复并@: ’REPLY‘;) + event: noticeUserIds.value.join(';') ? 'AT' : 'COMMENT', // 任务事件(仅评论: ’COMMENT‘; 评论并@: ’AT‘; 回复评论/回复并@: ’REPLY‘;) }; await createOrUpdateComment(params as CommentParams); Message.success(t('common.publishSuccessfully'));