mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-31 16:18:23 +00:00
fix: 【系统设置】邮件设置提前小时数双向绑定无效问题修改
This commit is contained in:
parent
973d13b705
commit
ce9d91e990
@ -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的倍数');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user