feat(knowledge): 切换下载模板的方式

1. 由创建 a 链接的方式换成 window.open
2. 更改获取 链接的 方式
This commit is contained in:
Huangzhe
2025-04-17 15:37:52 +08:00
parent 3f9f96646d
commit 7240e8d1b6
2 changed files with 4 additions and 34 deletions

View File

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