diff --git a/app/components/auth.tsx b/app/components/auth.tsx index 5375bda3f70..6130e4aba17 100644 --- a/app/components/auth.tsx +++ b/app/components/auth.tsx @@ -48,7 +48,6 @@ export function AuthPage() { return (
-
} @@ -93,19 +92,7 @@ export function AuthPage() { ); }} /> - { - accessStore.update( - (access) => (access.googleApiKey = e.currentTarget.value), - ); - }} - /> + ) : null} @@ -115,12 +102,6 @@ export function AuthPage() { type="primary" onClick={goChat} /> - { - goSaas(); - }} - />
); diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index a5e33b15ea3..4424779838b 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -307,7 +307,7 @@ export function SideBar(props: { className?: string }) {
- + } diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 9712593c61b..859a936d7d6 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -8,14 +8,8 @@ const cn = { WIP: "该功能仍在开发中……", Error: { Unauthorized: isApp - ? `😆 对话遇到了一些问题,不用慌: - \\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_UTM_URL}) - \\ 2️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️` - : `😆 对话遇到了一些问题,不用慌: - \ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_UTM_URL}) - \ 2️⃣ 如果你正在使用私有部署版本,点击[这里](/#/auth)输入访问秘钥 🔑 - \ 3️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️ - `, + ? "检测到无效 API Key,请前往[设置](/#/settings)页检查 API Key 是否配置正确。" + : "访问密码不正确或为空,请前往[登录](/#/auth)页输入正确的访问密码,或者微信公众号搜索【果冻学社】回复“访问密码”获取密码。", }, Auth: { Return: "返回",