mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(utils): make AxiosRequestConfig optional for request.handleDelete()
This commit is contained in:
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user