diff --git a/apps/web/src/app/auth/page.tsx b/apps/web/src/app/auth/page.tsx index dfd7f2a..73ad65e 100644 --- a/apps/web/src/app/auth/page.tsx +++ b/apps/web/src/app/auth/page.tsx @@ -11,130 +11,117 @@ import { env } from "@web/src/env"; const { Title, Text, Paragraph } = Typography; const AuthPage: React.FC = () => { - const { - showLogin, - isLoading, - toggleForm, - handleLogin, - handleRegister - } = useAuthForm(); - const { isAuthenticated } = useAuth(); - const location = useLocation(); - const navigate = useNavigate(); + const { showLogin, isLoading, toggleForm, handleLogin, handleRegister } = + useAuthForm(); + const { isAuthenticated } = useAuth(); + const location = useLocation(); + const navigate = useNavigate(); - useEffect(() => { - if (isAuthenticated) { - const params = new URLSearchParams(location.search); - const redirectUrl = params.get("redirect_url") || "/"; - navigate(redirectUrl, { replace: true }); - } - }, [isAuthenticated, location]); + useEffect(() => { + if (isAuthenticated) { + const params = new URLSearchParams(location.search); + const redirectUrl = params.get("redirect_url") || "/"; + navigate(redirectUrl, { replace: true }); + } + }, [isAuthenticated, location]); - return ( -
提供技术支持 diff --git a/config/browserless.js b/config/browserless.js deleted file mode 100644 index af55b8f..0000000 --- a/config/browserless.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = async ({ page, context }) => { - await page.setViewport({ width: 1920, height: 1080 }); - await page.goto("http://192.168.139.239:8090", { - waitUntil: "networkidle0", - }); - await page.evaluate(() => { - document.documentElement.requestFullscreen(); - }); -};