fix: redirect to home page after login success
Build and Deploy / build (push) Successful in 2m41s
Build and Deploy / deploy (push) Successful in 9s

This commit is contained in:
2026-07-17 06:55:52 +00:00
parent b697c21f8c
commit c08b9d622f
+1
View File
@@ -28,6 +28,7 @@ export default function LoginPage({ onLogin }: Props) {
if (res.ok && data.access_token) {
localStorage.setItem('token', data.access_token)
onLogin(data.access_token)
window.location.href = '/'
} else {
setError(data.error || '登录失败')
}