This commit is contained in:
xiaojunnuo
2024-10-14 10:27:11 +08:00
parent 07043aff0c
commit 4caa2fad9d
5 changed files with 18 additions and 8 deletions
@@ -67,6 +67,14 @@ export class PluginConfigService {
async getPluginConfig(req: PluginFindReq) {
const plugin = await this.get(req);
let sysSetting: any = {};
if (!plugin) {
return {
name: req.name,
disabled: false,
type: req.type,
sysSetting,
};
}
if (plugin && plugin.sysSetting) {
sysSetting = JSON.parse(plugin.sysSetting);
}