From d98f65ca8d3112ac06d484232b176ab07058be46 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Tue, 28 Jul 2026 17:10:05 +0800 Subject: [PATCH] fix bug --- apps/desktop/index.html | 2 +- apps/desktop/src/App.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/index.html b/apps/desktop/index.html index 26ca612..5c2fd4b 100644 --- a/apps/desktop/index.html +++ b/apps/desktop/index.html @@ -4,7 +4,7 @@ - 森林AI App + 森林AI Agent
diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index c60ed5e..20aed05 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -303,8 +303,8 @@ function ProfileModal({ user, visible, onClose, onSave }: { user: CurrentUser | } function Login({ onLogin }: { onLogin: (session: ApiSession & { user: CurrentUser }) => void }) { - const [server, setServer] = useState('http://localhost:9150'); const [email, setEmail] = useState('demo@senlin.ai'); const [password, setPassword] = useState('password123'); const [loading, setLoading] = useState(false); const [error, setError] = useState('') - return
{ event.preventDefault(); void submit() }}>森林AI App连接你的私有工作台{error && }
+ const [server, setServer] = useState('http://agent.apinb.com'); const [email, setEmail] = useState('root'); const [password, setPassword] = useState('123456'); const [loading, setLoading] = useState(false); const [error, setError] = useState('') + return
{ event.preventDefault(); void submit() }}><img src="/senlinai-icon.svg" alt="" width="50%" /> <br/> 森林AI Agent连接你的私有工作台{error && }
async function submit() { setLoading(true); setError(''); try { onLogin(await login(server, email.trim(), password)) } catch (requestError) { setError(errorMessage(requestError)) } finally { setLoading(false) } } }