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 2aadbd2..f37e098 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 @@ -16,7 +16,7 @@ import type { * - agent-debug: 智能体编辑器调试模式 * - agent-chat: 智能体正式对话模式(支持历史、反馈) */ -import { computed, onUnmounted, ref, watch } from 'vue'; +import { computed, defineAsyncComponent, onUnmounted, ref, watch } from 'vue'; import { Close, Setting } from '@element-plus/icons-vue'; @@ -31,10 +31,31 @@ import { import { AiWorkingAnimation } from '#/components/ai-loading'; import { ChatBox } from '#/components/ChatBox'; -import DesignPreviewPanel from './DesignPreviewPanel.vue'; import { useChatApi } from './composables/useChatApi'; import { useEventHandler } from './composables/useEventHandler'; +const DesignEditorPanel = defineAsyncComponent( + () => import('#/components/form-editor/DesignEditorPanel.vue'), +); +const AppDesignPanel = defineAsyncComponent( + () => import('#/components/form-editor/AppDesignPanel.vue'), +); +const AppSettingsPanel = defineAsyncComponent( + () => import('#/components/form-editor/AppSettingsPanel.vue'), +); +const DashboardBasicInfoConfirmPanel = defineAsyncComponent( + () => import('#/components/form-editor/DashboardBasicInfoConfirmPanel.vue'), +); +const DashboardDesignConfirmPanel = defineAsyncComponent( + () => import('#/components/form-editor/DashboardDesignConfirmPanel.vue'), +); +const DashboardPublishConfirmPanel = defineAsyncComponent( + () => import('#/components/form-editor/DashboardPublishConfirmPanel.vue'), +); +const SystemSummaryConfirmPanel = defineAsyncComponent( + () => import('#/components/form-editor/SystemSummaryConfirmPanel.vue'), +); + // ==================== Props ==================== const props = withDefaults(defineProps(), { mode: 'workflow', @@ -996,59 +1017,66 @@ onUnmounted(() => { /> - - - - - - - @@ -1056,51 +1084,58 @@ onUnmounted(() => { diff --git a/web/apps/web-ele/src/views/ai-platform/workflow/editor/components/ChatPanel.vue b/web/apps/web-ele/src/views/ai-platform/workflow/editor/components/ChatPanel.vue index c02ff63..2467403 100644 --- a/web/apps/web-ele/src/views/ai-platform/workflow/editor/components/ChatPanel.vue +++ b/web/apps/web-ele/src/views/ai-platform/workflow/editor/components/ChatPanel.vue @@ -1,9 +1,15 @@