From ce9d91e990004000c37a488af38e3edc0352c368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E8=8D=A3=E8=B6=85?= <302645122@qq.com> Date: Tue, 1 Mar 2022 15:06:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E7=B3=BB=E7=BB=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E3=80=91=E9=82=AE=E4=BB=B6=E8=AE=BE=E7=BD=AE=E6=8F=90?= =?UTF-8?q?=E5=89=8D=E5=B0=8F=E6=97=B6=E6=95=B0=E5=8F=8C=E5=90=91=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/manage/setting/system/EmailSetting.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/pages/manage/setting/system/EmailSetting.vue b/resources/assets/js/pages/manage/setting/system/EmailSetting.vue index d6c488279..929b3f8f8 100644 --- a/resources/assets/js/pages/manage/setting/system/EmailSetting.vue +++ b/resources/assets/js/pages/manage/setting/system/EmailSetting.vue @@ -109,14 +109,20 @@ export default { }); }, hoursChange(e) { - if (e % 0.5 !== 0) { - this.formData.task_remind_hours = 1; + let newNum = e * 10; + if (newNum % 5 !== 0) { + setTimeout(() => { + this.formData.task_remind_hours = 1; + }) $A.messageError('任务提醒只能是0.5的倍数'); } }, hours2Change(e) { - if (e % 0.5 !== 0) { - this.formData.task_remind_hours2 = 1; + let newNum = e * 10; + if (newNum % 5 !== 0) { + setTimeout(() => { + this.formData.task_remind_hours2 = 1; + }) $A.messageError('第二次任务提醒只能是0.5的倍数'); } }