pull/265/head
xiaojunnuo 2024-12-03 00:35:34 +08:00
parent 66b95d52fd
commit 4e768ec50f
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { Provide, Scope, ScopeEnum } from '@midwayjs/core'; import { Provide, Scope, ScopeEnum } from '@midwayjs/core';
import { pluginGroups, pluginRegistry } from '@certd/pipeline'; import { pluginGroups, pluginRegistry } from '@certd/pipeline';
import { cloneDeep } from 'lodash-es';
@Provide() @Provide()
@Scope(ScopeEnum.Singleton) @Scope(ScopeEnum.Singleton)
@ -18,6 +19,6 @@ export class BuiltInPluginService {
} }
getGroups() { getGroups() {
return pluginGroups; return cloneDeep(pluginGroups);
} }
} }

View File

@ -34,6 +34,13 @@ export class PluginService extends BaseService<PluginEntity> {
async getEnabledBuildInGroup() { async getEnabledBuildInGroup() {
const groups = this.builtInPluginService.getGroups(); const groups = this.builtInPluginService.getGroups();
for (const key in groups) {
const group = groups[key];
group.plugins.forEach(item => {
delete item.input;
});
}
if (!isComm()) { if (!isComm()) {
return groups; return groups;
} }