mirror of
https://github.com/dataease/dataease.git
synced 2025-02-27 22:15:43 +08:00
24 lines
390 B
JavaScript
24 lines
390 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function get(url) {
|
|
return request({
|
|
url: url,
|
|
method: 'get',
|
|
loading: true
|
|
})
|
|
}
|
|
|
|
export function execute(options) {
|
|
if (!options || !options.url) {
|
|
return null
|
|
}
|
|
options.type = options.type || 'post'
|
|
|
|
return request({
|
|
url: options.url,
|
|
method: options.type,
|
|
loading: true,
|
|
data: options.data
|
|
})
|
|
}
|