From 4474ef7e3fb44aee4452ee41803e0696d3d7fee7 Mon Sep 17 00:00:00 2001 From: sophie Date: Wed, 24 Jun 2026 11:23:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E4=BC=98=E5=8C=96chat=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=A1=B9=E9=83=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chat/components/ChatWelcomePanel.vue | 35 +++++++------------ frontend/src/locales/en/chat.json | 3 ++ frontend/src/locales/th/chat.json | 3 ++ frontend/src/locales/zh-CN/chat.json | 3 ++ frontend/src/locales/zh-TW/chat.json | 3 ++ 5 files changed, 25 insertions(+), 22 deletions(-) diff --git a/frontend/src/features/chat/components/ChatWelcomePanel.vue b/frontend/src/features/chat/components/ChatWelcomePanel.vue index 8c1c9e4f..92515eb5 100644 --- a/frontend/src/features/chat/components/ChatWelcomePanel.vue +++ b/frontend/src/features/chat/components/ChatWelcomePanel.vue @@ -31,23 +31,16 @@ const emit = defineEmits<{ const { t } = useI18n(); -const avatarLabel = computed(() => (props.agentName === '人事规章' ? 'HR' : 'AI')); - -const welcomeTitle = computed(() => ( - props.agentName === '人事规章' - ? '你好,我是人事规章 AI 助手' - : t('chat.welcomeTitle') -)); +const displayAgentName = computed(() => props.agentName || t('chat.assistantLabel'));