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) {
|
function refreshMigrateParagraph(data: any) {
|
||||||
if (data) {
|
if (data) {
|
||||||
multipleSelection.value = data
|
multipleSelection.value = [data]
|
||||||
}
|
}
|
||||||
paragraphDetail.value = paragraphDetail.value.filter(
|
paragraphDetail.value = paragraphDetail.value.filter(
|
||||||
(v) => !multipleSelection.value.includes(v.id),
|
(v) => !multipleSelection.value.includes(v.id),
|
||||||
)
|
)
|
||||||
|
getParagraphList()
|
||||||
multipleSelection.value = []
|
multipleSelection.value = []
|
||||||
MsgSuccess(t('views.document.tip.migrationSuccess'))
|
MsgSuccess(t('views.document.tip.migrationSuccess'))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user