From 16a35141dda0f5016da378cdc26e8ced4868ec4a Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:27:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=97=85=E6=AF=92?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E6=89=AB=E6=8F=8F=E6=A0=A1=E9=AA=8C=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98=20(#5856)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/toolbox/clam/operate/index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/views/toolbox/clam/operate/index.vue b/frontend/src/views/toolbox/clam/operate/index.vue index 67a613077..973438959 100644 --- a/frontend/src/views/toolbox/clam/operate/index.vue +++ b/frontend/src/views/toolbox/clam/operate/index.vue @@ -202,7 +202,7 @@ const verifySpec = (rule: any, value: any, callback: any) => { !Number.isInteger(item.second) || !Number.isInteger(item.week) ) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } switch (item.specType) { @@ -215,7 +215,7 @@ const verifySpec = (rule: any, value: any, callback: any) => { item.minute < 0 || item.minute > 59 ) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break; @@ -228,7 +228,7 @@ const verifySpec = (rule: any, value: any, callback: any) => { item.minute < 0 || item.minute > 59 ) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break; @@ -241,36 +241,36 @@ const verifySpec = (rule: any, value: any, callback: any) => { item.minute < 0 || item.minute > 59 ) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break; case 'perDay': if (item.hour < 0 || item.hour > 23 || item.minute < 0 || item.minute > 59) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break; case 'perNHour': if (item.hour < 0 || item.hour > 8784 || item.minute < 0 || item.minute > 59) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break; case 'perHour': if (item.minute < 0 || item.minute > 59) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } case 'perNMinute': if (item.minute < 0 || item.minute > 527040) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break; case 'perNSecond': if (item.second < 0 || item.second > 31622400) { - callback(new Error(i18n.global.t('cronjob.specErr'))); + callback(new Error(i18n.global.t('toolbox.clam.specErr'))); return; } break;