From 60a6ffddef8a6177daf22b46eb6506a7e082f34c Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 24 Jun 2024 16:29:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A7=E8=A1=8C=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/ExecutionDetailDialog.vue | 6 +++--- ui/src/components/ai-chat/index.vue | 3 ++- ui/src/layout/components/breadcrumb/index.vue | 4 ++-- ui/src/layout/components/sidebar/SidebarItem.vue | 6 +++--- ui/src/utils/application.ts | 2 +- .../views/application/component/CreateApplicationDialog.vue | 5 +++-- ui/src/views/application/index.vue | 5 +---- 7 files changed, 15 insertions(+), 16 deletions(-) diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 49234c0f8..45bfc9b1c 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -7,7 +7,7 @@
- 开始 + {{ item && item.name }}
6.01s @@ -34,13 +34,13 @@ import { MdPreview } from 'md-editor-v3' const emit = defineEmits(['refresh']) const dialogVisible = ref(false) -const detail = ref({}) +const detail = ref([]) const current = ref('') watch(dialogVisible, (bool) => { if (!bool) { - detail.value = {} + detail.value = [] } }) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index cb3bb1d76..e753b6ee8 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -153,6 +153,7 @@ import { ChatManagement, type chatType } from '@/api/type/application' import { randomId } from '@/utils/utils' import useStore from '@/stores' import MdRenderer from '@/components/markdown-renderer/MdRenderer.vue' +import { isWorkFlow } from '@/utils/application' import { MdPreview } from 'md-editor-v3' import { debounce } from 'lodash' defineOptions({ name: 'AiChat' }) @@ -335,7 +336,7 @@ function getChartOpenId(chat?: any) { } }) } else { - if (obj.type === 'WORK_FLOW') { + if (isWorkFlow(obj.type)) { const submitObj = { work_flow: obj.work_flow } diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue index 96476fcfb..4dcd41b6a 100644 --- a/ui/src/layout/components/breadcrumb/index.vue +++ b/ui/src/layout/components/breadcrumb/index.vue @@ -120,7 +120,7 @@