From 52b044608cba344447de1f88c49fe94b04ea897e Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 30 Jun 2025 19:37:26 +0800 Subject: [PATCH] fix: update refreshMigrateParagraph to handle single data selection and improve success message handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1057688 --user=刘瑞斌 【知识库】文档内分段迁移失败,console有报错 https://www.tapd.cn/62980211/s/1720613 --- ui/src/views/paragraph/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue index 84b424875..5579182c2 100644 --- a/ui/src/views/paragraph/index.vue +++ b/ui/src/views/paragraph/index.vue @@ -208,11 +208,12 @@ function changeState(id: string) { function refreshMigrateParagraph(data: any) { if (data) { - multipleSelection.value = data + multipleSelection.value = [data] } paragraphDetail.value = paragraphDetail.value.filter( (v) => !multipleSelection.value.includes(v.id), ) + getParagraphList() multipleSelection.value = [] MsgSuccess(t('views.document.tip.migrationSuccess')) }