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')
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

View File

@ -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()