Add manual plugin manager registration support

Introduces backend and frontend logic to manually register the plugin manager if not already loaded. Adds a new API endpoint and frontend UI prompt to guide users through registration after plugin installation when necessary.
This commit is contained in:
手瓜一十雪
2026-01-29 15:44:26 +08:00
parent 542036f46e
commit 7f05aee11d
4 changed files with 87 additions and 1 deletions

View File

@@ -43,6 +43,14 @@ export default class PluginManager {
return data.data;
}
/**
* 手动注册插件管理器到 NetworkManager
*/
public static async registerPluginManager () {
const { data } = await serverRequest.post<ServerResponse<{ message: string; }>>('/Plugin/RegisterManager');
return data.data;
}
public static async setPluginStatus (name: string, enable: boolean, filename?: string) {