mirror of https://github.com/certd/certd
feat 支持自定义证书申请插件
parent
0f6e7e5eab
commit
6650c30c27
|
@ -54,7 +54,7 @@ function getDomainFromPipeline(inputKey: string) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CertApplyPluginNames.includes(certStep.type)) {
|
if (certStep?.type?.indexOf?.("CertApply") === -1) {
|
||||||
targetStepId = getStepIdFromInputKey(certStep.input?.cert);
|
targetStepId = getStepIdFromInputKey(certStep.input?.cert);
|
||||||
certStep = findStepFromPipeline(targetStepId);
|
certStep = findStepFromPipeline(targetStepId);
|
||||||
if (!certStep) {
|
if (!certStep) {
|
||||||
|
|
|
@ -37,13 +37,9 @@ export default {
|
||||||
currentStepIndex: currentStepIndex.value,
|
currentStepIndex: currentStepIndex.value,
|
||||||
currentTask: currentTask.value,
|
currentTask: currentTask.value,
|
||||||
});
|
});
|
||||||
if (props.from) {
|
const _certApply = pluginGroups?.groups?.cert?.plugins?.map((item: any) => item.name) || [];
|
||||||
if (typeof props.from === "string") {
|
const _fromProps = props.from ? (typeof props.from === "string" ? [props.from] : props.from) : [];
|
||||||
options.value = options.value.filter((item: any) => item.type === props.from);
|
options.value = options.value.filter((item: any) => _certApply?.includes?.(item.type) || _fromProps.includes(item.type));
|
||||||
} else {
|
|
||||||
options.value = options.value.filter((item: any) => props.from.includes(item.type));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (props.modelValue != null) {
|
if (props.modelValue != null) {
|
||||||
const found = options.value.find((item: any) => item.value === props.modelValue);
|
const found = options.value.find((item: any) => item.value === props.modelValue);
|
||||||
|
|
Loading…
Reference in New Issue