From 935b001656d1771f690a267fd604ee06fe292fc1 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: Mon, 22 Jun 2026 21:46:19 +0800 Subject: [PATCH] perf: replace heavy design editor in ai chat --- .../components/ai-chat-panel/AiChatPanel.vue | 8 +- .../ai-chat-panel/LiteDesignPreviewPanel.vue | 80 +++++++++++++++++++ .../agent/components/AgentChatPanel.vue | 7 +- .../workflow/editor/components/ChatPanel.vue | 6 +- 4 files changed, 87 insertions(+), 14 deletions(-) create mode 100644 web/apps/web-ele/src/components/ai-chat-panel/LiteDesignPreviewPanel.vue diff --git a/web/apps/web-ele/src/components/ai-chat-panel/AiChatPanel.vue b/web/apps/web-ele/src/components/ai-chat-panel/AiChatPanel.vue index f1458d2..6bfd639 100644 --- a/web/apps/web-ele/src/components/ai-chat-panel/AiChatPanel.vue +++ b/web/apps/web-ele/src/components/ai-chat-panel/AiChatPanel.vue @@ -34,6 +34,7 @@ import { ChatBox } from '#/components/ChatBox'; import { useChatApi } from './composables/useChatApi'; import { useEventHandler } from './composables/useEventHandler'; +import LiteDesignPreviewPanel from './LiteDesignPreviewPanel.vue'; const AppDesignPanel = defineAsyncComponent(() => import('#/components/form-editor/AppDesignPanel.vue'), @@ -50,9 +51,6 @@ const DashboardDesignConfirmPanel = defineAsyncComponent(() => const DashboardPublishConfirmPanel = defineAsyncComponent(() => import('#/components/form-editor/DashboardPublishConfirmPanel.vue'), ); -const DesignEditorPanel = defineAsyncComponent(() => - import('#/components/form-editor/DesignEditorPanel.vue'), -); const SystemSummaryConfirmPanel = defineAsyncComponent(() => import('#/components/form-editor/SystemSummaryConfirmPanel.vue'), ); @@ -1018,7 +1016,7 @@ onUnmounted(() => { /> - {