From b44e04da7cbf2b487d5782c7abeaaa6800d3c94e Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 6 Feb 2024 18:39:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B6=88=E6=81=AF=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=82=AE=E4=BB=B6=E6=A0=87=E9=A2=98=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=B8=A6=E6=9C=89Metersphe?= =?UTF-8?q?re=E5=BC=80=E5=A4=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../messageManagement/components/messagePreview.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/project-management/messageManagement/components/messagePreview.vue b/frontend/src/views/project-management/messageManagement/components/messagePreview.vue index 00bbfec6e7..56ff81de0c 100644 --- a/frontend/src/views/project-management/messageManagement/components/messagePreview.vue +++ b/frontend/src/views/project-management/messageManagement/components/messagePreview.vue @@ -223,7 +223,16 @@ if (props.isUpdatePreview) { return replaceVariableStr(props.robot.subject || '', props.fields || [], true); } - return replacePreviewName(props.robot.previewSubject || ''); + let previewName = replacePreviewName(props.robot.previewSubject || ''); + // 邮件标题默认显示Metersphere + if ( + props.robot.platform === 'MAIL' && + props.robot.previewSubject !== null && + props.robot.previewSubject?.indexOf('Metersphere') === -1 + ) { + previewName = `Metersphere ${previewName}`; + } + return previewName }); const template = computed(() => {