From 38fda9aa9e165994e019d38fff379f4dda8efe9a Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 27 Jul 2026 15:16:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=20ProtectedRoute=20?= =?UTF-8?q?=E4=B8=AD=E5=A4=9A=E4=BD=99=E7=9A=84=20HomeRoute=20=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/router/ProtectedRoute.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/web/src/router/ProtectedRoute.tsx b/apps/web/src/router/ProtectedRoute.tsx index cde03bc08..b1f2fa12f 100644 --- a/apps/web/src/router/ProtectedRoute.tsx +++ b/apps/web/src/router/ProtectedRoute.tsx @@ -14,17 +14,3 @@ export const ProtectedRoute = ({ children }: { children: React.ReactNode }) => { return <>{children} } - -/** 首页路由组件:已登录跳 dashboard,未登录显示落地页 */ -// eslint-disable-next-line react-refresh/only-export-components -export const HomeRoute: React.FC = () => { - const isAuthenticated = useAuthStore((state) => state.isAuthenticated) - const hasAccessToken = Boolean(localStorage.getItem("access_token")) - - if (isAuthenticated && hasAccessToken) { - return - } - - const { default: HomePage } = require("@/pages/home/HomePage") - return -}