fix(utils): make AxiosRequestConfig optional for request.handleDelete()

This commit is contained in:
guuuuo 2023-03-08 01:30:33 +00:00
parent e2b320ad27
commit 4a6fec8af0

View File

@ -77,7 +77,7 @@ export function createRequest(axiosConfig: AxiosRequestConfig, backendConfig?: S
* @param url - * @param url -
* @param config - axios配置 * @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 }); return asyncRequest<T>({ url, method: 'delete', axiosConfig: config });
} }