From d985002d4913a9835d33436ff086e3ddac76b49e Mon Sep 17 00:00:00 2001 From: bingshuo <565183519@qq.com> Date: Tue, 19 May 2026 22:49:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9C=9C=E7=A0=9AAgent=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E5=8D=A1=E7=89=87=20=E2=80=94=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E6=98=BE=E7=A4=BA=E9=86=92=E7=9B=AE=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- homepage/index.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/homepage/index.html b/homepage/index.html index b645cbb..0aa54d8 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -293,6 +293,20 @@ body{ + + +
@@ -446,17 +460,20 @@ function showLoggedIn(username){ document.getElementById('logged-in-bar').style.display='flex'; document.getElementById('user-name').textContent=username; document.getElementById('user-avatar').textContent=username[0].toUpperCase(); + document.getElementById('frost-entry').style.display='block'; } function goToRepo(){const u=localStorage.getItem('current_user');window.location.href='/code/'+u;} function dismissRepo(){} +function goToShuangyan(){window.location.href='https://guanghubingshuo.com/agent-api/';} function logout(){ localStorage.removeItem('current_user');localStorage.removeItem('is_admin'); localStorage.removeItem('logged_in');localStorage.removeItem('login_time'); document.getElementById('logged-in-bar').style.display='none'; + document.getElementById('frost-entry').style.display='none'; document.getElementById('login-bar').style.display='flex'; document.getElementById('login-user').value=''; } -(function(){const u=localStorage.getItem('current_user');if(u&&localStorage.getItem('logged_in')==='true')showLoggedIn(u)})(); +(function(){const u=localStorage.getItem('current_user');if(u&&localStorage.getItem('logged_in')==='true'){showLoggedIn(u);document.getElementById('frost-entry').style.display='block'}})(); /* ── 对话记忆 ── */ let chatHistory={};