mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: update refreshMigrateParagraph to handle single data selection and improve success message handling
--bug=1057688 --user=刘瑞斌 【知识库】文档内分段迁移失败,console有报错 https://www.tapd.cn/62980211/s/1720613
This commit is contained in:
parent
3205f14dfb
commit
52b044608c
|
|
@ -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'))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue