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(() => {