feat: Performance tooltip done.

This commit is contained in:
chiayin
2024-02-02 16:14:09 +08:00
parent 7c959e7cd9
commit c86ce2d6f0
2 changed files with 17 additions and 13 deletions

View File

@@ -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`
// 毫秒 * 秒 * 分鐘 * 小時 = 一天的時間量