fix: 修改ext参数为非必输

This commit is contained in:
wangshuaiswim 2023-01-09 18:30:20 +08:00
parent ef064a60c5
commit 6530755873
1 changed files with 4 additions and 4 deletions

View File

@ -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,