Compare commits

..

No commits in common. "04263cd519da1d4b668068558c83a983f68c87f4" and "7439c9759a69f237831635bf739fd6afc4e6c591" have entirely different histories.

1 changed files with 5 additions and 12 deletions

View File

@ -172,23 +172,16 @@ const disabledHours = ()=>{
}
// -
const disabledMinute = (hour,role) => {
if(form.time == null) return
if(getCurrentTime('YYYY-MM-DD') == form.day){
const arrs = []
if(role == 'start'){
let nowHour = new Date().getHours().toString().padStart(2, '0');
if(nowHour < hour){
return []
}
else{
for (let i = 0; i < 60; i++) {
if (new Date().getMinutes() <= i) continue;
arrs.push(i)
}
return arrs;
for (let i = 0; i < 60; i++) {
if (new Date().getMinutes() <= i) continue;
arrs.push(i)
}
return arrs;
}
if(role == 'end'){
else{
if(form.time[0]) return []
}
}