|
|
|
@ -76,6 +76,9 @@ export function requestGet(url: string, data?: any, params: CrudParams = {}) {
|
|
|
|
|
type: 'GET', |
|
|
|
|
data, |
|
|
|
|
params, |
|
|
|
|
headers: { |
|
|
|
|
'Content-Type': 'application/json;charset=UTF-8', |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -85,6 +88,9 @@ export function requestPost(url: string, data = {}, params: CrudParams = {}) {
|
|
|
|
|
type: 'POST', |
|
|
|
|
data, |
|
|
|
|
params, |
|
|
|
|
headers: { |
|
|
|
|
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -93,6 +99,9 @@ export function requestDelete(url: string, data = {}) {
|
|
|
|
|
url, |
|
|
|
|
type: 'DELETE', |
|
|
|
|
data, |
|
|
|
|
headers: { |
|
|
|
|
'Content-Type': 'application/json;charset=UTF-8', |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -102,5 +111,8 @@ export function requestPut(url: string, data = {}, params: CrudParams = {}) {
|
|
|
|
|
type: 'PUT', |
|
|
|
|
data, |
|
|
|
|
params, |
|
|
|
|
headers: { |
|
|
|
|
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|