You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
355 B
17 lines
355 B
import request from '@/utils/request'
|
|
|
|
export function diyApi(url, data = {}, method = "POST", contentType = 'json') {
|
|
return request({
|
|
'url': url,
|
|
'method': method,
|
|
'data': data
|
|
})
|
|
}
|
|
|
|
export function diyApiGet(url, data = {}, method = "GET", contentType = 'json') {
|
|
return request({
|
|
'url': url,
|
|
'method': method,
|
|
'params': data
|
|
})
|
|
}
|