mirror of https://github.com/certd/certd
chore: 1
parent
cc0657aaa8
commit
83bd39a9a8
|
@ -9,9 +9,10 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { inject, ref, watch } from "vue";
|
import { inject, ref, watch } from "vue";
|
||||||
|
import { CertApplyPluginNames } from "/@/constants";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "CertDomainsGetter"
|
name: "CertDomainsGetter",
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
@ -52,7 +53,8 @@ function getDomainFromPipeline(inputKey: string) {
|
||||||
errorRef.value = "找不到目标步骤,请先选择域名证书";
|
errorRef.value = "找不到目标步骤,请先选择域名证书";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (certStep.type !== "CertApply" && certStep.type !== "CertApplyLego") {
|
|
||||||
|
if (!CertApplyPluginNames.includes(certStep.type)) {
|
||||||
targetStepId = getStepIdFromInputKey(certStep.input?.cert);
|
targetStepId = getStepIdFromInputKey(certStep.input?.cert);
|
||||||
certStep = findStepFromPipeline(targetStepId);
|
certStep = findStepFromPipeline(targetStepId);
|
||||||
if (!certStep) {
|
if (!certStep) {
|
||||||
|
@ -73,7 +75,7 @@ watch(
|
||||||
getDomainFromPipeline(inputKey);
|
getDomainFromPipeline(inputKey);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true
|
immediate: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
export const CertApplyPluginNames = ["CertApply", "CertApplyLego", "CertApplyUpload"];
|
Loading…
Reference in New Issue