From 65c6922621bcaaee8f751ad6e1ede173daa86922 Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 17 May 2021 18:18:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=94=B6=E9=9B=86?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BB=BB=E5=8A=A1=E5=88=9B=E5=BB=BA=E4=B8=8D?= =?UTF-8?q?=E5=A1=AB=E5=86=99interval=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xpack/GatheredUser/TaskCreateUpdate.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/xpack/GatheredUser/TaskCreateUpdate.vue b/src/views/xpack/GatheredUser/TaskCreateUpdate.vue index a058f8b8a..5b41dd6f5 100644 --- a/src/views/xpack/GatheredUser/TaskCreateUpdate.vue +++ b/src/views/xpack/GatheredUser/TaskCreateUpdate.vue @@ -17,10 +17,6 @@ export default { [this.$t('common.Other'), ['comment']] ], url: '/api/v1/xpack/gathered-user/tasks/', - initial: { - is_periodic: true, - interval: 24 - }, hasDetailInMsg: false, fieldsMeta: { crontab: { @@ -48,12 +44,16 @@ export default { } } }, - 'is_periodic': { + is_periodic: { type: 'switch' } }, createSuccessNextRoute: { name: 'GatherUserListIndex' }, - updateSuccessNextRoute: { name: 'GatherUserListIndex' } + updateSuccessNextRoute: { name: 'GatherUserListIndex' }, + cleanFormValue(values) { + values.interval = values.interval || null + return values + } } } }