From 3c6618b4fc2f9fdbb0cc7f8398d74fd7d2c9ef04 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 3 Jan 2025 09:27:51 +0800 Subject: [PATCH] chore: --- .../certd-client/src/views/certd/pipeline/certd-form/crud.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx index 3fe9e5f0a..9fab545b1 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/certd-form/crud.tsx @@ -43,6 +43,8 @@ export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOpt } } + const randomHour = Math.floor(Math.random() * 6); + const randomMin = Math.floor(Math.random() * 60); return { crudOptions: { form: { @@ -94,6 +96,7 @@ export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOpt title: "定时触发", type: "text", form: { + value: `0 ${randomMin} ${randomHour} * * *`, component: { name: "cron-editor", vModel: "modelValue",