Skip to content

Commit 009e631

Browse files
fix: Related relationship jump problem
1 parent 5e366d8 commit 009e631

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ui/src/components/resource_mapping/index.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,16 @@ function toSetting(row: any) {
403403
MsgError(t('common.noTargetPermission'))
404404
return
405405
}
406+
const knowledge_from =
407+
from === 'workspace'
408+
? row.folder_id
409+
: from === 'shared'
410+
? row.workspace_id === 'None'
411+
? 'shared'
412+
: 'resource-management'
413+
: from
406414
const newUrl = router.resolve({
407-
path: `/knowledge/${row.source_id}/${from === 'shared' ? (row.workspace_id === 'None' ? 'shared' : 'resource-management') : from}/${row.type}/document`,
415+
path: `/knowledge/${row.source_id}/${knowledge_from}/${row.type}/document`,
408416
}).href
409417
window.open(newUrl)
410418
} else if (row.source_type === 'APPLICATION') {

0 commit comments

Comments
 (0)