From 5a6a7a5fb7c52d02fc146cf10316ce8515cb49de Mon Sep 17 00:00:00 2001 From: QihuAI Design Date: Mon, 13 Jul 2026 21:15:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8E=E5=8F=B0=E3=80=8C=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=89=8D=E5=8F=B0=E3=80=8D=E6=89=93=E5=BC=80=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E5=85=AC=E5=BC=80=E8=B7=AF=E7=94=B1=20/home=EF=BC=8C?= =?UTF-8?q?=E7=BB=95=E8=BF=87=E7=AE=A1=E7=90=86=E5=91=98=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.tsx | 2 ++ frontend/src/components/layout/AdminLayout.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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');