mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 19:48:18 +08:00
feat(fix):前端请求,loading配置
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user