mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
parent
a5228448d7
commit
f657a24a1a
@ -159,10 +159,10 @@ export default {
|
||||
//开始位置时间(今天00:00:00)
|
||||
let nowDay = $A.daytz().startOf('day');
|
||||
//当前时间
|
||||
let curDay = nowDay.clone().add(mouseDay, 'day');
|
||||
let curDay = nowDay.clone().add(Math.floor(mouseDay), 'day');
|
||||
//
|
||||
if (index > 0) {
|
||||
curDay = curDay.add(index + 1, 'month');
|
||||
curDay = curDay.add(index, 'month');
|
||||
}
|
||||
return curDay.format('YYYY-MM')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user