diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 74d629f..5077215 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -85,6 +85,14 @@ function LoginPageClient() { const { siteName } = useSite(); + // 处理URL中的error参数 + useEffect(() => { + const errorParam = searchParams.get('error'); + if (errorParam) { + setError(decodeURIComponent(errorParam)); + } + }, [searchParams]); + // 在客户端挂载后设置配置 useEffect(() => { if (typeof window !== 'undefined') {