fix: 部署到腾讯云cdn选择证书任务步骤限制只能选证书

This commit is contained in:
xiaojunnuo
2024-08-23 18:02:14 +08:00
parent 17ead547aa
commit 3345c145b8
4 changed files with 125 additions and 3 deletions

View File

@@ -12,6 +12,9 @@ export default {
modelValue: {
type: String,
default: undefined
},
from: {
type: String
}
},
emits: ["update:modelValue"],
@@ -32,6 +35,9 @@ export default {
currentStepIndex: currentStepIndex.value,
currentTask: currentTask.value
});
if (props.from) {
options.value = options.value.filter((item: any) => item.type === props.from);
}
if (props.modelValue == null && options.value.length > 0) {
ctx.emit("update:modelValue", options.value[0].value);
}