mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
chore:
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user