feat: plugin installation webui

This commit is contained in:
Junyan Qin
2025-08-15 22:05:39 +08:00
parent b464d238c5
commit 288b294148
7 changed files with 234 additions and 8 deletions

View File

@@ -192,4 +192,20 @@ export abstract class BaseHttpClient {
public delete<T = unknown>(url: string, config?: RequestConfig): Promise<T> {
return this.request<T>({ method: 'delete', url, ...config });
}
public postFile<T = unknown>(
url: string,
formData: FormData,
config?: RequestConfig,
): Promise<T> {
return this.request<T>({
method: 'post',
url,
data: formData,
headers: {
'Content-Type': 'multipart/form-data',
},
...config,
});
}
}