diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 40c8c1a..d11bd98 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -161,6 +161,8 @@ const App: React.FC = () => { } /> + {/* 公开前台首页:不受登录态拦截,供后台「访问前台」直接打开 */} + } /> } /> diff --git a/frontend/src/components/layout/AdminLayout.tsx b/frontend/src/components/layout/AdminLayout.tsx index f3f85eb..3f4bc7c 100644 --- a/frontend/src/components/layout/AdminLayout.tsx +++ b/frontend/src/components/layout/AdminLayout.tsx @@ -329,7 +329,7 @@ const AdminLayout: React.FC = () => { const handleVisitFrontend = () => { - const url = window.location.origin + '/'; + const url = window.location.origin + '/home'; window.open(url, '_blank');