From 477b7fdae5f232336da1a049479bfb281f22f9d6 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 16 Apr 2024 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E8=AF=84=E8=AE=BA@=E7=94=A8=E6=88=B7=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039290 --user=宋昌昌 【消息管理】缺陷评论@用户a-用户a收到通知未显示@我的 https://www.tapd.cn/55049933/s/1498581 --- .../bug-management/components/bug-detail-drawer.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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'));