feat(fix):前端请求,loading配置

This commit is contained in:
junjie
2021-06-02 17:35:50 +08:00
parent c627f44e6e
commit ec24cf3d39
3 changed files with 9 additions and 9 deletions

View File

@@ -85,10 +85,10 @@ export function getPreviewData(data) {
})
}
export function fieldList(id) {
export function fieldList(id, showLoading = true) {
return request({
url: '/dataset/field/list/' + id,
loading: true,
loading: showLoading,
method: 'post'
})
}
@@ -102,11 +102,11 @@ export function batchEdit(data) {
})
}
export function post(url, data) {
export function post(url, data, showLoading = true) {
return request({
url: url,
method: 'post',
loading: true,
loading: showLoading,
data
})
}