From ecbd6879834129c0029e071a8aa9fdd6d6dfeb42 Mon Sep 17 00:00:00 2001 From: sp mac bookpro 2605 Date: Fri, 31 Jul 2026 16:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E9=A1=B5=E9=9D=A2=E5=90=8E=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E4=B8=8D=E8=B7=B3=E5=9B=9E=E5=8E=9F=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 未登录访问非 /login 路径时,重定向到 /login?next=原路径 - 登录成功后 LoginPage 会读取 next 参数跳回原页面 - 修复 pure-chat 等独立路由登录后跳错页的问题 --- src/App.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 654f5f8..42e2af1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -82,7 +82,17 @@ export default function App() { ) : !user ? ( } /> - } /> + + } + /> ) : location.pathname.startsWith('/pure-chat') ? (