From 2d902cd01ef09776addb56447f6d4b5435f665a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Sat, 13 Jun 2026 08:22:47 +0800 Subject: [PATCH] fix: simplify chat empty state --- .../web-ele/src/components/ChatBox/index.vue | 26 +++++++++---------- .../ai-loading/AiWorkingAnimation.vue | 12 ++++----- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/web/apps/web-ele/src/components/ChatBox/index.vue b/web/apps/web-ele/src/components/ChatBox/index.vue index da547dc..cdb2e54 100644 --- a/web/apps/web-ele/src/components/ChatBox/index.vue +++ b/web/apps/web-ele/src/components/ChatBox/index.vue @@ -11,12 +11,11 @@ import type { Attachment, ChatMessage, VoiceMessage } from './types'; */ import { computed, nextTick, ref, watch } from 'vue'; -import { ChevronDown, ChevronUp, Trash2 } from '@vben/icons'; +import { Bot, ChevronDown, ChevronUp, Trash2 } from '@vben/icons'; import { useUserStore } from '@vben/stores'; import { ElScrollbar } from 'element-plus'; -import AiWorkingAnimation from '#/components/ai-loading/AiWorkingAnimation.vue'; import { getFileUrl } from '#/composables/useFileUrl'; import InputArea from './InputArea.vue'; @@ -246,16 +245,17 @@ defineExpose({
- - - +
+
+ +
+

+ {{ welcomeConfig.title }} +

+

+ {{ welcomeConfig?.description || emptyText || '开始对话吧' }} +

+
- +
diff --git a/web/apps/web-ele/src/components/ai-loading/AiWorkingAnimation.vue b/web/apps/web-ele/src/components/ai-loading/AiWorkingAnimation.vue index fb3a189..875cd23 100644 --- a/web/apps/web-ele/src/components/ai-loading/AiWorkingAnimation.vue +++ b/web/apps/web-ele/src/components/ai-loading/AiWorkingAnimation.vue @@ -122,7 +122,7 @@ onUnmounted(() => { -
+
const handleSubmit = async () => {
@@ -138,7 +138,7 @@ onUnmounted(() => {
-
+
function createApp(config) {
const state = reactive({});
watch(() => props.value, cb);
@@ -152,7 +152,7 @@ onUnmounted(() => {
-
+
{
-
+
{{ thoughts[currentThought] }}
@@ -284,7 +284,7 @@ onUnmounted(() => {
-
+
@@ -340,7 +340,7 @@ onUnmounted(() => {
-
+
const app = async () => return data