mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-02 02:48:13 +00:00
Merge pull request #280 from nightcp/fix-ganntt-timeline-error
fix(gantt): 修复甘特图时间轴计算错误
This commit is contained in:
commit
eb3524a22d
@ -159,10 +159,10 @@ export default {
|
|||||||
//开始位置时间(今天00:00:00)
|
//开始位置时间(今天00:00:00)
|
||||||
let nowDay = $A.daytz().startOf('day');
|
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) {
|
if (index > 0) {
|
||||||
curDay = curDay.add(index + 1, 'month');
|
curDay = curDay.add(index, 'month');
|
||||||
}
|
}
|
||||||
return curDay.format('YYYY-MM')
|
return curDay.format('YYYY-MM')
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user