fix: change workspace

This commit is contained in:
wangdan-fit2cloud 2025-07-12 13:22:23 +08:00
parent 3d36c3fa2d
commit a3ae33bf7c
2 changed files with 4 additions and 2 deletions

View File

@ -149,6 +149,7 @@ function openParagraph(row: any, id?: string) {
emit('openParagraph') emit('openParagraph')
return return
} }
dialogType.value = ''
currentComponent.value = ParagraphSourceContent currentComponent.value = ParagraphSourceContent
currentChatDetail.value = obj currentChatDetail.value = obj
dialogVisible.value = true dialogVisible.value = true
@ -159,6 +160,7 @@ function openExecutionDetail(row: any) {
emit('openExecutionDetail') emit('openExecutionDetail')
return return
} }
dialogType.value = ''
currentComponent.value = ExecutionDetailContent currentComponent.value = ExecutionDetailContent
currentChatDetail.value = row currentChatDetail.value = row
dialogVisible.value = true dialogVisible.value = true

View File

@ -50,9 +50,9 @@ function changeWorkspace(item: WorkspaceItem) {
} = route as any } = route as any
if (item.id === user.workspace_id) return if (item.id === user.workspace_id) return
user.setWorkspaceId(item.id || 'default') user.setWorkspaceId(item.id || 'default')
if (activeMenu.includes('application')) { if (activeMenu.includes('application') && route.path != '/application') {
router.push('/application') router.push('/application')
} else if (activeMenu.includes('knowledge')) { } else if (activeMenu.includes('knowledge') && route.path != '/knowledge') {
router.push('/knowledge') router.push('/knowledge')
} else { } else {
window.location.reload() window.location.reload()