feat(knowledge): 添加 MinerU组件以支持 PDF 文件处理

- 新增 RenderMinerU 组件,用于 PDF 文件的预处理和 Markdown 编辑
- 在 create.vue 中集成 RenderMinerU组件,实现预处理结果预览功能
- 更新公共样式以支持 Markdown 渲染
- 在 main.js 中注册 RMinerU组件
- 修改 package.json,添加 markdown-it 和 markdown-it-katex 依赖
- 更新 vue.config.js,添加对 mjs 文件的处理规则
This commit is contained in:
陈昱达
2025-04-11 16:26:27 +08:00
parent e9ee7fe0a2
commit d108379f41
8 changed files with 379 additions and 42 deletions

View File

@@ -40,3 +40,21 @@ export function datasetDelete(data) {
method: 'delete',
})
}
//minerU 获取bbox
export function minerUBbox(params) {
return request({
url:'http://192.168.8.165:7196/document/mineru/bbox_json',
// url: getUrl('/document/mineru/bbox_json'),
method: 'get',
params:params
})
}
//minerU 获取markdown
export function minerUMarkDown(params) {
return `http://192.168.8.165:7196/document/mineru/md?documentId=${params.documentId}`
// url: getUrl('/document/mineru/md'),
}