From 54ded9fc0ecf09c421fbe764925cbe27b21d5b07 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 4 Aug 2026 11:12:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20useAuth=E7=99=BB=E5=BD=95=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=96=AD=E8=A8=80=E6=94=B9=E4=B8=BA/app/dashboard?= =?UTF-8?q?=EF=BC=8C=E4=B8=8EuseAuth.ts=E5=AE=9E=E9=99=85=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=9B=AE=E6=A0=87=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/test/hooks/useAuth.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/test/hooks/useAuth.test.tsx b/apps/web/src/test/hooks/useAuth.test.tsx index 8e48c1aad..23d488ab5 100644 --- a/apps/web/src/test/hooks/useAuth.test.tsx +++ b/apps/web/src/test/hooks/useAuth.test.tsx @@ -107,7 +107,7 @@ describe("useAuth hooks", () => { }) expect(mockSetAuth).toHaveBeenCalled() - expect(mockNavigate).toHaveBeenCalledWith("/", { replace: true }) + expect(mockNavigate).toHaveBeenCalledWith("/app/dashboard", { replace: true }) }) it("登录成功后跳转到 login_redirect 指定的页面", async () => { @@ -198,3 +198,4 @@ describe("useAuth hooks", () => { }) }) }) +