fix(utils): make AxiosRequestConfig optional for request.handleDelete()
This commit is contained in:
parent
e2b320ad27
commit
4a6fec8af0
@ -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 });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user