lyc-dev #163

Merged
lyc merged 2 commits from lyc-dev into main 2024-08-30 14:29:54 +08:00
1 changed files with 10 additions and 5 deletions

View File

@ -177,15 +177,20 @@ const disabledHours = ()=>{
}
}
// -
const disabledMinute = () => {
const disabledMinute = (hour,role) => {
if(getCurrentTime('YYYY-MM-DD') == form.day){
const arrs = []
if(role == 'start'){
for (let i = 0; i < 60; i++) {
if (new Date().getMinutes() <= i && form.time[0]) continue;
if (new Date().getMinutes() <= i) continue;
arrs.push(i)
}
return arrs;
}
else{
if(form.time[0]) return []
}
}
}