Skip to content

Commit a3ae33b

Browse files
fix: change workspace
1 parent 3d36c3f commit a3ae33b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ui/src/components/ai-chat/component/knowledge-source-component/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ function openParagraph(row: any, id?: string) {
149149
emit('openParagraph')
150150
return
151151
}
152+
dialogType.value = ''
152153
currentComponent.value = ParagraphSourceContent
153154
currentChatDetail.value = obj
154155
dialogVisible.value = true
@@ -159,6 +160,7 @@ function openExecutionDetail(row: any) {
159160
emit('openExecutionDetail')
160161
return
161162
}
163+
dialogType.value = ''
162164
currentComponent.value = ExecutionDetailContent
163165
currentChatDetail.value = row
164166
dialogVisible.value = true

ui/src/layout/layout-header/UserHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ function changeWorkspace(item: WorkspaceItem) {
5050
} = route as any
5151
if (item.id === user.workspace_id) return
5252
user.setWorkspaceId(item.id || 'default')
53-
if (activeMenu.includes('application')) {
53+
if (activeMenu.includes('application') && route.path != '/application') {
5454
router.push('/application')
55-
} else if (activeMenu.includes('knowledge')) {
55+
} else if (activeMenu.includes('knowledge') && route.path != '/knowledge') {
5656
router.push('/knowledge')
5757
} else {
5858
window.location.reload()

0 commit comments

Comments
 (0)