feat: Performance tooltip done.
This commit is contained in:
@@ -108,7 +108,6 @@ export function dateLabel(date, maxDate, minDate) {
|
||||
var diffMonths = (maxDate.getFullYear() - minDate.getFullYear()) * 12;
|
||||
diffMonths -= minDate.getMonth();
|
||||
diffMonths += maxDate.getMonth();
|
||||
console.log(diffMonths);
|
||||
|
||||
// 計算相差的日期,要取整數才能接續下方的邏輯判斷 `diffDays > 0`
|
||||
// 毫秒 * 秒 * 分鐘 * 小時 = 一天的時間量
|
||||
|
||||
Reference in New Issue
Block a user