feat 支持自定义证书申请插件

pull/453/head
yhliu 2025-07-09 12:32:08 +08:00
parent 0f6e7e5eab
commit 6650c30c27
2 changed files with 4 additions and 8 deletions

View File

@ -54,7 +54,7 @@ function getDomainFromPipeline(inputKey: string) {
return;
}
if (!CertApplyPluginNames.includes(certStep.type)) {
if (certStep?.type?.indexOf?.("CertApply") === -1) {
targetStepId = getStepIdFromInputKey(certStep.input?.cert);
certStep = findStepFromPipeline(targetStepId);
if (!certStep) {

View File

@ -37,13 +37,9 @@ export default {
currentStepIndex: currentStepIndex.value,
currentTask: currentTask.value,
});
if (props.from) {
if (typeof props.from === "string") {
options.value = options.value.filter((item: any) => item.type === props.from);
} else {
options.value = options.value.filter((item: any) => props.from.includes(item.type));
}
}
const _certApply = pluginGroups?.groups?.cert?.plugins?.map((item: any) => item.name) || [];
const _fromProps = props.from ? (typeof props.from === "string" ? [props.from] : props.from) : [];
options.value = options.value.filter((item: any) => _certApply?.includes?.(item.type) || _fromProps.includes(item.type));
if (props.modelValue != null) {
const found = options.value.find((item: any) => item.value === props.modelValue);