From 0ee4b7fae275abaeb4ec4bdfc05f3c77005ea75f Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 2 Jul 2025 19:25:29 +0800 Subject: [PATCH] fix: execution --- .../ai-chat/ExecutionDetailDialog.vue | 6 +- ui/src/components/ai-chat/KnowledgeSource.vue | 2 +- .../component/ExecutionDetailContent.vue | 1278 ++++++++--------- .../component/chat-input-operate/index.vue | 24 - ui/src/views/chat/pc/index.vue | 6 +- 5 files changed, 645 insertions(+), 671 deletions(-) diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 44caa79bf..a7f401427 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -8,7 +8,7 @@ align-center @click.stop > - + diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index adc4c0160..464d03650 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -354,30 +354,6 @@ const localLoading = computed({ }, }) -const showUserInput = ref(true) -const form_data = ref({}) -const api_form_data = ref({}) - -const toggleUserInput = () => { - showUserInput.value = !showUserInput.value - if (showUserInput.value) { - // 保存当前数据作为初始数据(用于可能的恢复) - initialFormData.value = JSON.parse(JSON.stringify(form_data.value)) - initialApiFormData.value = JSON.parse(JSON.stringify(api_form_data.value)) - } -} - -function UserFormConfirm() { - showUserInput.value = false -} - -function UserFormCancel() { - // 恢复初始数据 - form_data.value = JSON.parse(JSON.stringify(initialFormData.value)) - api_form_data.value = JSON.parse(JSON.stringify(initialApiFormData.value)) - userFormRef.value?.render(form_data.value) - showUserInput.value = false -} const upload = ref() diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue index 59fe64aa8..f614199f4 100644 --- a/ui/src/views/chat/pc/index.vue +++ b/ui/src/views/chat/pc/index.vue @@ -291,17 +291,13 @@ -
- - - -