From 315ee4bc3e1130b59653b01f55d501a81dcc0dae Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:50:03 +0800 Subject: [PATCH] fix: chat route (#3276) --- ui/src/router/chat/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/router/chat/index.ts b/ui/src/router/chat/index.ts index dc758794d..e09a69e85 100644 --- a/ui/src/router/chat/index.ts +++ b/ui/src/router/chat/index.ts @@ -25,7 +25,7 @@ router.beforeEach( return } const { chatUser } = useStore() - const notAuthRouteNameList = ['UserLogin'] + const notAuthRouteNameList = ['user_login'] if (!notAuthRouteNameList.includes(to.name ? to.name.toString() : '')) { if (to.params && to.params.accessToken) { chatUser.setAccessToken(to.params.accessToken.toString()) @@ -40,7 +40,7 @@ router.beforeEach( if (authentication) { if (!token) { next({ - name: 'UserLogin', + name: 'user_login', params: { accessToken: to.params.accessToken, },