mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore: 1
This commit is contained in:
@@ -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>
|
||||
|
||||
1
packages/ui/certd-client/src/constants/index.ts
Normal file
1
packages/ui/certd-client/src/constants/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const CertApplyPluginNames = ["CertApply", "CertApplyLego", "CertApplyUpload"];
|
||||
Reference in New Issue
Block a user