From 9172afc47625ca9d20cbab5376c84c9bc202750a Mon Sep 17 00:00:00 2001 From: teukkk Date: Mon, 7 Jul 2025 16:59:25 +0800 Subject: [PATCH] refactor: chatHistoryDrawer --- ui/src/views/chat/embed/index.vue | 183 +--------------- .../mobile/component/ChatHistoryDrawer.vue | 197 ++++++++++++++++++ ui/src/views/chat/mobile/index.vue | 188 +---------------- ui/src/views/chat/pc/index.vue | 30 ++- 4 files changed, 239 insertions(+), 359 deletions(-) create mode 100644 ui/src/views/chat/mobile/component/ChatHistoryDrawer.vue diff --git a/ui/src/views/chat/embed/index.vue b/ui/src/views/chat/embed/index.vue index f1ee259d6..97547c1ca 100644 --- a/ui/src/views/chat/embed/index.vue +++ b/ui/src/views/chat/embed/index.vue @@ -3,7 +3,7 @@ class="chat-embed layout-bg chat-background" :class="{ 'chat-embed--popup': isPopup }" v-loading="loading" - :style="{ + :style="{ '--el-color-primary': applicationDetail?.custom_theme?.theme_color, '--el-color-primary-light-9': hexToRgba(applicationDetail?.custom_theme?.theme_color, 0.1), backgroundImage: `url(${applicationDetail?.chat_background})`, @@ -15,7 +15,7 @@ - -
-
-
- - - - -
-

{{ applicationDetail?.name }}

-
- - - {{ $t('chat.createChat') }} - -

{{ $t('chat.history') }}

-
- -
- -
- - - - -
-
- {{ $t('chat.only20history') }} -
-
-
- -
+ - diff --git a/ui/src/views/chat/mobile/index.vue b/ui/src/views/chat/mobile/index.vue index 2ac2a123e..592753d53 100644 --- a/ui/src/views/chat/mobile/index.vue +++ b/ui/src/views/chat/mobile/index.vue @@ -15,7 +15,7 @@ - -
-
-
- - - - -
-

{{ applicationDetail?.name }}

-
- - - {{ $t('chat.createChat') }} - -

{{ $t('chat.history') }}

-
- -
- -
- - - - -
-
- {{ $t('chat.only20history') }} -
-
-
- -
+ -