mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore:
This commit is contained in:
@@ -29,7 +29,6 @@ function initPlugins(plugins: any) {
|
||||
plugin.input[key] = field;
|
||||
}
|
||||
}
|
||||
console.log("plugins", plugins);
|
||||
}
|
||||
|
||||
export async function GetList(query: any) {
|
||||
@@ -56,6 +55,18 @@ export async function GetGroups(query: any) {
|
||||
return groups;
|
||||
}
|
||||
|
||||
export async function GetPluginDefine(type: string) {
|
||||
const define = await request({
|
||||
url: apiPrefix + "/getDefineByType",
|
||||
method: "post",
|
||||
data: {
|
||||
type
|
||||
}
|
||||
});
|
||||
initPlugins([define]);
|
||||
return define;
|
||||
}
|
||||
|
||||
export async function GetPluginConfig(req: { id?: number; name: string; type: string }): Promise<PluginConfigBean> {
|
||||
return await request({
|
||||
url: apiPrefix + "/config",
|
||||
|
||||
+3
-3
@@ -239,13 +239,13 @@ export default {
|
||||
const stepType = step.type;
|
||||
step.type = stepType;
|
||||
step._isAdd = false;
|
||||
|
||||
let pluginDefine = pluginGroups.get(stepType);
|
||||
const pluginDefine = await pluginApi.GetPluginDefine(stepType);
|
||||
// let pluginDefine = pluginGroups.get(stepType);
|
||||
if (pluginDefine == null) {
|
||||
console.log("插件未找到", stepType);
|
||||
return;
|
||||
}
|
||||
pluginDefine = _.cloneDeep(pluginDefine);
|
||||
// pluginDefine = _.cloneDeep(pluginDefine);
|
||||
const columns = pluginDefine.input;
|
||||
for (let key in columns) {
|
||||
const column = columns[key];
|
||||
|
||||
Reference in New Issue
Block a user