Merge branch '分段预览'
This commit is contained in:
commit
282f809f5f
|
|
@ -975,13 +975,7 @@ const handlePreview = async (row: FileItem) => {
|
||||||
breaks: true,
|
breaks: true,
|
||||||
gfm: true
|
gfm: true
|
||||||
})
|
})
|
||||||
const resp = await getSegmentList({
|
|
||||||
datasetId:datasetId.value,
|
|
||||||
documentId: row.difyDocId
|
|
||||||
})
|
|
||||||
if (resp.data?.length) {
|
|
||||||
segmentList.value = resp.data
|
|
||||||
}
|
|
||||||
|
|
||||||
previewMarkdownContent.value = marked.parse(content) as string
|
previewMarkdownContent.value = marked.parse(content) as string
|
||||||
}
|
}
|
||||||
|
|
@ -996,6 +990,13 @@ const handlePreview = async (row: FileItem) => {
|
||||||
console.log("previewFileUrl (from API)", previewFileUrl.value)
|
console.log("previewFileUrl (from API)", previewFileUrl.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const resp = await getSegmentList({
|
||||||
|
datasetId:datasetId.value,
|
||||||
|
documentId: row.difyDocId
|
||||||
|
})
|
||||||
|
if (resp.data?.length) {
|
||||||
|
segmentList.value = resp.data
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: t('vabI18n.knowledge.document.errors.previewFailed'),
|
title: t('vabI18n.knowledge.document.errors.previewFailed'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue