fix: 修改ext参数为非必输
This commit is contained in:
parent
ef064a60c5
commit
6530755873
|
@ -66,10 +66,10 @@ export const patch = function(url: string, data = {}) {
|
|||
* GET method request
|
||||
* @param {String} url
|
||||
* @param {Object} [params]
|
||||
* @param {Object} [ext], 扩展参数
|
||||
* @param {Object} [ext] 扩展参数
|
||||
* @returns {AxiosInstance}
|
||||
*/
|
||||
export const get = function(url: string, params = {}, ext: any) {
|
||||
export const get = function(url: string, params = {}, ext?: any) {
|
||||
return request({
|
||||
method: 'GET',
|
||||
url,
|
||||
|
@ -82,10 +82,10 @@ export const get = function(url: string, params = {}, ext: any) {
|
|||
* DELETE method request
|
||||
* @param {String} url
|
||||
* @param {Object} [params]
|
||||
* @param {Object} [ext], 扩展参数
|
||||
* @param {Object} [ext] 扩展参数
|
||||
* @returns {AxiosInstance}
|
||||
*/
|
||||
export const remove = function(url: string, params = {}, ext: any) {
|
||||
export const remove = function(url: string, params = {}, ext?: any) {
|
||||
return request({
|
||||
method: 'DELETE',
|
||||
url,
|
||||
|
|
Loading…
Reference in New Issue