mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-21 00:36:51 +08:00
refactor(api): 优化知识库查询和修改接口
- 在 datasetsEx/query 和 datasetsEx/update 接口中添加 noLoading 参数 - 设置 noLoading 为 true,以优化接口调用时的用户体验
This commit is contained in:
@@ -14,7 +14,8 @@ export function getDatasetById(params) {
|
|||||||
return request({
|
return request({
|
||||||
url: getUrl('/datasetsEx/query'),
|
url: getUrl('/datasetsEx/query'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params,
|
||||||
|
noLoading: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 知识库内容修改
|
// 知识库内容修改
|
||||||
@@ -22,7 +23,8 @@ export function datasetUpdate(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: getUrl('/datasetsEx/update'),
|
url: getUrl('/datasetsEx/update'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data,
|
||||||
|
noLoading: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 知识库新增
|
// 知识库新增
|
||||||
|
|||||||
Reference in New Issue
Block a user