(
url: string,
data?: B,
options?: Omit<RequestOptions, 'data'>
)
| 148 | |
| 149 | // PATCH 请求 |
| 150 | patch<T = unknown, B = unknown>( |
| 151 | url: string, |
| 152 | data?: B, |
| 153 | options?: Omit<RequestOptions, 'data'> |
| 154 | ) { |
| 155 | return this.request<T>(url, { ...options, method: 'PATCH', data }); |
| 156 | } |
| 157 | |
| 158 | // DELETE 请求 |
| 159 | delete<T = unknown>(url: string, options?: RequestOptions) { |