mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-12 04:16:52 +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({
|
||||
url: getUrl('/datasetsEx/query'),
|
||||
method: 'get',
|
||||
params: params
|
||||
params: params,
|
||||
noLoading: true
|
||||
})
|
||||
}
|
||||
// 知识库内容修改
|
||||
@@ -22,7 +23,8 @@ export function datasetUpdate(data) {
|
||||
return request({
|
||||
url: getUrl('/datasetsEx/update'),
|
||||
method: 'post',
|
||||
data
|
||||
data,
|
||||
noLoading: true
|
||||
})
|
||||
}
|
||||
// 知识库新增
|
||||
|
||||
Reference in New Issue
Block a user