pull/373/head
xiaojunnuo 2025-04-13 00:10:23 +08:00
parent cc0657aaa8
commit 83bd39a9a8
2 changed files with 6 additions and 3 deletions

View File

@ -9,9 +9,10 @@
<script setup lang="ts">
import { inject, ref, watch } from "vue";
import { CertApplyPluginNames } from "/@/constants";
defineOptions({
name: "CertDomainsGetter"
name: "CertDomainsGetter",
});
const props = defineProps<{
@ -52,7 +53,8 @@ function getDomainFromPipeline(inputKey: string) {
errorRef.value = "找不到目标步骤,请先选择域名证书";
return;
}
if (certStep.type !== "CertApply" && certStep.type !== "CertApplyLego") {
if (!CertApplyPluginNames.includes(certStep.type)) {
targetStepId = getStepIdFromInputKey(certStep.input?.cert);
certStep = findStepFromPipeline(targetStepId);
if (!certStep) {
@ -73,7 +75,7 @@ watch(
getDomainFromPipeline(inputKey);
},
{
immediate: true
immediate: true,
}
);
</script>

View File

@ -0,0 +1 @@
export const CertApplyPluginNames = ["CertApply", "CertApplyLego", "CertApplyUpload"];