From ed424bc44543774013e3652db8982805e99300df Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Thu, 7 Nov 2024 17:56:54 +0800 Subject: [PATCH] fix: Job create cannot be saved without setting interval --- src/views/accounts/const.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/accounts/const.js b/src/views/accounts/const.js index fecd4826b..ba4c4bc1a 100644 --- a/src/views/accounts/const.js +++ b/src/views/accounts/const.js @@ -4,7 +4,7 @@ import InputWithUnit from '@/components/Form/FormFields/InputWithUnit.vue' import store from '@/store' const validatorInterval = (rule, value, callback) => { - if (isNaN(parseInt(value, 10)) || parseInt(value) < 1) { + if (!isNaN(parseInt(value, 10)) && parseInt(value) < 1) { return callback(new Error(i18n.t('EnsureThisValueIsGreaterThanOrEqualTo1'))) } callback()