fix: 后台「访问前台」打开独立公开路由 /home,绕过管理员登录重定向

This commit is contained in:
QihuAI Design committed 2026-07-13 21:15:48 +08:00
1 parent 5617d4304b
commit 5a6a7a5fb7
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -161,6 +161,8 @@ const App: React.FC = () => {
<Route path="portal" element={<UserPortal />} />
</Route>
{/* 公开前台首页:不受登录态拦截,供后台「访问前台」直接打开 */}
<Route path="/home" element={<LandingPage />} />
<Route path="*" element={<Navigate to="/" />} />
</Routes>
</Suspense>
@@ -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');