diff --git a/ui/src/views/chat/embed/component/ChatHistoryDrawer.vue b/ui/src/views/chat/embed/component/ChatHistoryDrawer.vue index 05f7d2d1a..7d2c81b17 100644 --- a/ui/src/views/chat/embed/component/ChatHistoryDrawer.vue +++ b/ui/src/views/chat/embed/component/ChatHistoryDrawer.vue @@ -138,7 +138,7 @@ const openResetPassword = () => { const handleResetPassword = (param: ResetCurrentUserPasswordRequest) => { chatAPI.resetCurrentPassword(param).then(() => { - logout() + router.push({name: 'login'}) }) } diff --git a/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue b/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue index df7d4cebf..2eb0a2565 100644 --- a/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue +++ b/ui/src/views/chat/mobile/component/ResetPasswordDrawer.vue @@ -102,9 +102,7 @@ function resetPassword() { resetPasswordFormRef.value?.validate().then(() => { chatAPI.resetCurrentPassword(resetPasswordForm.value).then(() => { MsgSuccess(t('common.modifySuccess')) - chatUser.logout().then(() => { - router.push({ name: 'login' }) - }) + router.push({name: 'login'}) }) }) } diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue index fe0811e85..74316998a 100644 --- a/ui/src/views/chat/pc/index.vue +++ b/ui/src/views/chat/pc/index.vue @@ -40,16 +40,16 @@ chatUser.chat_profile.authentication_type === 'password' " > - +
- + {{ - chatUser.chatUserProfile?.nick_name - }} + chatUser.chatUserProfile?.nick_name + }}
- -
- - -
-
-
-

{{ rightPanelTitle }}

-   -
+
+ + +
+
+
+
+

{{ rightPanelTitle }}

+   +
- + - - + + - + - + -
-
-
- - -
+
+ + + +
+
@@ -209,27 +211,30 @@