fix: explicit navigate after login + flat routes + venv gitignore

This commit is contained in:
enzo
2026-07-22 19:23:09 +08:00
parent cb296ba09e
commit e5bb7ec49a
+1 -1
View File
@@ -18,7 +18,7 @@ export default function LoginPage() {
setLoading(true) setLoading(true)
try { try {
await login(username, password) await login(username, password)
// RedirectIfAuth handles navigation automatically navigate('/', { replace: true })
} catch (err: any) { } catch (err: any) {
const status = err?.response?.status const status = err?.response?.status
const detail = err?.response?.data?.detail ?? '登录失败' const detail = err?.response?.data?.detail ?? '登录失败'