Skip to content

Commit

Permalink
fix(utils): make AxiosRequestConfig optional for request.handleDelete()
Browse files Browse the repository at this point in the history
  • Loading branch information
guuuuo committed Mar 8, 2023
1 parent e2b320a commit 4a6fec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/request/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function createRequest(axiosConfig: AxiosRequestConfig, backendConfig?: S
* @param url - 请求地址
* @param config - axios配置
*/
function handleDelete<T>(url: string, config: AxiosRequestConfig) {
function handleDelete<T>(url: string, config?: AxiosRequestConfig) {
return asyncRequest<T>({ url, method: 'delete', axiosConfig: config });
}

Expand Down

0 comments on commit 4a6fec8

Please sign in to comment.