mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-07 13:18:16 +00:00
fix: 【系统设置】邮件设置提前小时数双向绑定无效问题修改
This commit is contained in:
parent
973d13b705
commit
ce9d91e990
@ -109,14 +109,20 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
hoursChange(e) {
|
hoursChange(e) {
|
||||||
if (e % 0.5 !== 0) {
|
let newNum = e * 10;
|
||||||
this.formData.task_remind_hours = 1;
|
if (newNum % 5 !== 0) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.formData.task_remind_hours = 1;
|
||||||
|
})
|
||||||
$A.messageError('任务提醒只能是0.5的倍数');
|
$A.messageError('任务提醒只能是0.5的倍数');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hours2Change(e) {
|
hours2Change(e) {
|
||||||
if (e % 0.5 !== 0) {
|
let newNum = e * 10;
|
||||||
this.formData.task_remind_hours2 = 1;
|
if (newNum % 5 !== 0) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.formData.task_remind_hours2 = 1;
|
||||||
|
})
|
||||||
$A.messageError('第二次任务提醒只能是0.5的倍数');
|
$A.messageError('第二次任务提醒只能是0.5的倍数');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user