diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/index.vue b/ui/src/components/ai-chat/component/knowledge-source-component/index.vue index 90b331d8f..d071fefdc 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/index.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/index.vue @@ -149,6 +149,7 @@ function openParagraph(row: any, id?: string) { emit('openParagraph') return } + dialogType.value = '' currentComponent.value = ParagraphSourceContent currentChatDetail.value = obj dialogVisible.value = true @@ -159,6 +160,7 @@ function openExecutionDetail(row: any) { emit('openExecutionDetail') return } + dialogType.value = '' currentComponent.value = ExecutionDetailContent currentChatDetail.value = row dialogVisible.value = true diff --git a/ui/src/layout/layout-header/UserHeader.vue b/ui/src/layout/layout-header/UserHeader.vue index acc7b8eb4..5720b301f 100644 --- a/ui/src/layout/layout-header/UserHeader.vue +++ b/ui/src/layout/layout-header/UserHeader.vue @@ -50,9 +50,9 @@ function changeWorkspace(item: WorkspaceItem) { } = route as any if (item.id === user.workspace_id) return user.setWorkspaceId(item.id || 'default') - if (activeMenu.includes('application')) { + if (activeMenu.includes('application') && route.path != '/application') { router.push('/application') - } else if (activeMenu.includes('knowledge')) { + } else if (activeMenu.includes('knowledge') && route.path != '/knowledge') { router.push('/knowledge') } else { window.location.reload()