From 13f2ecc1c9836880aca893b1f086d0a0e0e9070f Mon Sep 17 00:00:00 2001 From: zimk Date: Tue, 17 Mar 2026 00:49:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=99=E9=BB=98=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=97=B6=E4=B8=8D=E8=B7=B3=E5=9B=9E=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app.js b/public/app.js index cabd576..d21d4c7 100644 --- a/public/app.js +++ b/public/app.js @@ -256,8 +256,10 @@ async function loginWithKey(key, surfaceError = true) { localStorage.removeItem(MODEL_STORAGE); localStorage.removeItem(ACCESS_KEY_STORAGE); renderModelDropdown(); - if (surfaceError) setLoginError(error.message || '登录失败'); - showLogin(); + if (surfaceError) { + setLoginError(error.message || '登录失败'); + showLogin(); + } return false; } }