From 5d17d7f2c95a37eda808dc623067e51205756f19 Mon Sep 17 00:00:00 2001 From: Ted <2508067350@qq.com> Date: Wed, 19 Feb 2025 13:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20copiedHello.content=20?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 6691403e6..484a27b74 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1283,6 +1283,7 @@ function _Chat() { }); }; + const appstore = useAppConfig(); const accessStore = useAccessStore(); const [speechStatus, setSpeechStatus] = useState(false); const [speechLoading, setSpeechLoading] = useState(false); @@ -1340,7 +1341,10 @@ function _Chat() { ) { const copiedHello = Object.assign({}, BOT_HELLO); if (!accessStore.isAuthorized()) { - copiedHello.content = Locale.Error.Unauthorized; + if (!isEmpty(appstore.omeToken)) { + } else { + copiedHello.content = Locale.Error.Unauthorized; + } } context.push(copiedHello); }