feat(knowledge): 添加下载知识文件模板功能

- task-page.js
  1. 添加对应的接口
- request.js
  1. 更改校验显示
- preprocessing.vue
  实现 下载模板的功能
This commit is contained in:
Huangzhe
2025-04-17 15:03:07 +08:00
parent eb3be6ba57
commit 3f9f96646d
3 changed files with 74 additions and 16 deletions

View File

@@ -21,3 +21,14 @@ export function getRuleList(data = {}) {
data
})
}
/**
* 下载知识文件模板
*/
export function downloadKnowledgeTemplate() {
return request({
url: getUrl('/datasetDocumentEx/download'),
method: 'get',
responseType: 'blob'
})
}