Skip to content

Commit 1215462

Browse files
fix: Related relationship jump problem
1 parent c4722ce commit 1215462

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ui/src/components/resource_mapping/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ function toSetting(row: any) {
357357
}
358358
if (row.source_type === 'KNOWLEDGE') {
359359
const newUrl = router.resolve({
360-
path: `/knowledge/${row.source_id}/${from}/${row.type}/document`,
360+
path: `/knowledge/${row.source_id}/${from === 'workspace' ? row.folder_id : from}/${row.type}/document`,
361361
}).href
362362
window.open(newUrl)
363363
} else if (row.source_type === 'APPLICATION') {

ui/src/views/application/ApplicationSetting.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
<ToolIcon v-else type="MCP" class="mr-8" :size="20" />
387387

388388
<div
389-
class="ellipsis"
389+
class="ellipsis-1"
390390
:title="relatedObject(mcpToolSelectOptions, item, 'id')?.name"
391391
>
392392
{{
@@ -486,7 +486,7 @@
486486
<ToolIcon v-else class="mr-8" :size="20" />
487487

488488
<div
489-
class="ellipsis"
489+
class="ellipsis-1"
490490
:title="relatedObject(toolSelectOptions, item, 'id')?.name"
491491
>
492492
{{ relatedObject(toolSelectOptions, item, 'id')?.name }}
@@ -567,7 +567,7 @@
567567
<AppIcon v-else class="mr-8" :size="20" />
568568

569569
<div
570-
class="ellipsis"
570+
class="ellipsis-1"
571571
:title="relatedObject(applicationSelectOptions, item, 'id')?.name"
572572
>
573573
{{ relatedObject(applicationSelectOptions, item, 'id')?.name }}
@@ -800,7 +800,6 @@ import McpServersDialog from '@/views/application/component/McpServersDialog.vue
800800
import ToolDialog from '@/views/application/component/ToolDialog.vue'
801801
import ApplicationDialog from '@/views/application/component/ApplicationDialog.vue'
802802
import useStore from '@/stores'
803-
import { Agent } from 'http'
804803
const route = useRoute()
805804
const router = useRouter()
806805
const {

0 commit comments

Comments
 (0)