Commit 7e94ccc4 by 杨子

优化

parent 50e5b64f
...@@ -100,7 +100,6 @@ export default function useTimeaxisUnits( ...@@ -100,7 +100,6 @@ export default function useTimeaxisUnits(
} }
// for the very last upper unit : // for the very last upper unit :
if (!upperUnits.some(un => un.value === String(currentUpperUnitVal))) { if (!upperUnits.some(un => un.value === String(currentUpperUnitVal))) {
debugger
upperUnitMinutesCount += chartEndDayjs.value.diff(currentUnit.subtract(1, lowerUnit === 'minute' ? 'hour': lowerUnit ), "minutes", true) upperUnitMinutesCount += chartEndDayjs.value.diff(currentUnit.subtract(1, lowerUnit === 'minute' ? 'hour': lowerUnit ), "minutes", true)
upperUnits.push({ upperUnits.push({
label: currentUnit.format(displayFormats[upperUnit]), label: currentUnit.format(displayFormats[upperUnit]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment