From 179b8b51d8b3bc91c9755f6aeee4b99a1783fda0 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 2 Jul 2025 13:52:35 +0800 Subject: [PATCH] refactor: update openMoveToDialog function to use structured object for parameters --- ui/src/views/application/index.vue | 6 +++++- .../views/knowledge/component/KnowledgeListContainer.vue | 7 ++++++- ui/src/views/tool/component/ToolListContainer.vue | 6 +++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index d1644ba9a..19532d8c2 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -336,7 +336,11 @@ const CopyApplicationDialogRef = ref() const MoveToDialogRef = ref() function openMoveToDialog(data: any) { - MoveToDialogRef.value?.open(data) + const obj = { + id: data.id, + folder_id: data.folder + } + MoveToDialogRef.value?.open(obj) } function refreshApplicationList(row: any) { const index = applicationList.value.findIndex((v) => v.id === row.id) diff --git a/ui/src/views/knowledge/component/KnowledgeListContainer.vue b/ui/src/views/knowledge/component/KnowledgeListContainer.vue index bacdec430..8e190f050 100644 --- a/ui/src/views/knowledge/component/KnowledgeListContainer.vue +++ b/ui/src/views/knowledge/component/KnowledgeListContainer.vue @@ -385,7 +385,12 @@ const paginationConfig = reactive({ const MoveToDialogRef = ref() function openMoveToDialog(data: any) { - MoveToDialogRef.value?.open(data) + // 仅2个参数就行 + const obj = { + id: data.id, + folder_id: data.folder + } + MoveToDialogRef.value?.open(obj) } function refreshKnowledgeList(row: any) { diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index 15ec4d9c0..d09a2102b 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -370,7 +370,11 @@ const ToolDrawertitle = ref('') const MoveToDialogRef = ref() function openMoveToDialog(data: any) { - MoveToDialogRef.value?.open(data) + const obj = { + id: data.id, + folder_id: data.folder + } + MoveToDialogRef.value?.open(obj) } function refreshToolList(row: any) {