From 4c9d024b671ba16b79bdb582c369c3eb0fcb4a49 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:36:43 +0800 Subject: [PATCH] fix: After entering the password for the public access link, the parameters carried by the URL address are missing (#3570) --- ui/src/router/chat/index.ts | 3 +- ui/src/views/chat/user-login/index.vue | 53 +++++++++++++++----------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/ui/src/router/chat/index.ts b/ui/src/router/chat/index.ts index 1387e3e0a..74fe54dc2 100644 --- a/ui/src/router/chat/index.ts +++ b/ui/src/router/chat/index.ts @@ -71,12 +71,13 @@ router.beforeEach( params: { accessToken: to.params.accessToken, }, + query: to.query, }) } return } if (p_token) { - next({ ...to, query: {} }) + next({ ...to, query: to.query }) } else { next() } diff --git a/ui/src/views/chat/user-login/index.vue b/ui/src/views/chat/user-login/index.vue index 7a14cfb5d..d0a9dbe2c 100644 --- a/ui/src/views/chat/user-login/index.vue +++ b/ui/src/views/chat/user-login/index.vue @@ -10,9 +10,9 @@ class="mr-8" style="background: none" > - + - +

{{ chatUser.chat_profile?.application_name }}

@@ -29,9 +29,9 @@ class="mr-8" style="background: none" > - + - +

{{ chatUser.chat_profile?.application_name }}

@@ -104,7 +104,7 @@
- +