Merge pull request #200 from guuuuo/main

fix(utils): make AxiosRequestConfig optional for request.handleDelete()
This commit is contained in:
Soybean 2023-03-08 12:27:48 +08:00 committed by GitHub
commit 7f748f2a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });
}