mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 09:42:48 +00:00
fix: change workspace
This commit is contained in:
parent
3d36c3fa2d
commit
a3ae33bf7c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue