chore: 修复默认更新天数无效的bug

This commit is contained in:
xiaojunnuo
2026-01-29 00:46:29 +08:00
parent 58c3d7087b
commit 67a5225bde
2 changed files with 10 additions and 2 deletions
@@ -115,6 +115,15 @@ export function useCertPipelineCreator() {
label: "name", label: "name",
}); });
const DEFAULT_RENEW_DAYS = settingStore.sysPublic.defaultCertRenewDays || settingStore.sysPublic.defaultWillExpireDays || 15;
merge(inputs, {
renewDays: {
form: {
value: DEFAULT_RENEW_DAYS,
},
},
});
return { return {
crudOptions: { crudOptions: {
form: { form: {
@@ -338,7 +347,7 @@ export function useCertPipelineCreator() {
title: "申请证书", title: "申请证书",
runnableType: "step", runnableType: "step",
input: { input: {
renewDays: 35, renewDays: 15,
...pluginInput, ...pluginInput,
}, },
strategy: { strategy: {
@@ -20,7 +20,6 @@ export abstract class CertApplyBasePlugin extends CertApplyBaseConvertPlugin {
@TaskInput({ @TaskInput({
title: "更新天数", title: "更新天数",
value: 18,
component: { component: {
name: "a-input-number", name: "a-input-number",
vModel: "value", vModel: "value",