feat: plugin config file auto clean

This commit is contained in:
Junyan Qin
2025-11-06 00:02:25 +08:00
parent d44df75e5c
commit b529d07479
5 changed files with 127 additions and 16 deletions
+6
View File
@@ -456,6 +456,12 @@ export class BackendClient extends BaseHttpClient {
});
}
public deletePluginConfigFile(
fileKey: string,
): Promise<{ deleted: boolean }> {
return this.delete(`/api/v1/plugins/config-files/${fileKey}`);
}
public getPluginIconURL(author: string, name: string): string {
if (this.instance.defaults.baseURL === '/') {
const url = window.location.href;