From 5732303fafdc8d05fdfe7e0afbfaa922ccb4eabe Mon Sep 17 00:00:00 2001 From: "LINING-PC\\lining" Date: Mon, 3 Nov 2025 21:21:28 +0800 Subject: [PATCH] =?UTF-8?q?v1.4.2=20-=20bugfix=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=AD=90Task=E5=90=8E=E6=97=A0=E9=99=90=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TaskDrawer.vue | 2 ++ src/components/Timeline.vue | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/TaskDrawer.vue b/src/components/TaskDrawer.vue index e569639..c03a52c 100644 --- a/src/components/TaskDrawer.vue +++ b/src/components/TaskDrawer.vue @@ -142,6 +142,7 @@ const formData = reactive({ timerStartTime: undefined, // 计时器开始时间 timerEndTime: undefined, // 计时器结束时间 timerElapsedTime: 0, // 计时器已用时间 + children: undefined, // 子任务列表 }) // 任务列表数据 @@ -392,6 +393,7 @@ const resetForm = () => { timerStartTime: undefined, timerEndTime: undefined, timerElapsedTime: 0, + children: undefined, }) // 清除错误信息 diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 56e764a..5ac5a19 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -729,8 +729,6 @@ const getCachedTimelineData = (): unknown => { // 获取虚拟滚动优化后的时间轴数据 const optimizedTimelineData = computed(() => { const cachedData = getCachedTimelineData() as any - // TODO 测试后删除 - console.log('optimizedTimelineData - cachedData: ', cachedData) // 只在小时视图中应用虚拟滚动 if (currentTimeScale.value === TimelineScale.HOUR && Array.isArray(cachedData)) { const { startHour, endHour } = visibleHourRange.value @@ -776,8 +774,6 @@ const optimizedTimelineData = computed(() => { // 计算完整时间线的总宽度(用于虚拟滚动容器) const totalTimelineWidth = computed(() => { const cachedData = getCachedTimelineData() as any - // TODO 测试后删除 - console.log('totalTimelineWidth - cachedData: ', cachedData) if (currentTimeScale.value === TimelineScale.HOUR) { if (Array.isArray(cachedData)) { // 计算总小时数 @@ -800,8 +796,6 @@ const totalTimelineWidth = computed(() => { const totalWeeks = cachedData.reduce((total, month: { weeks?: unknown[] }) => { return total + (month.weeks?.length || 0) }, 0) - // TODO 测试后删除 - console.log('total weeks: ', totalWeeks) return totalWeeks * 60 } else if (currentTimeScale.value === TimelineScale.MONTH) { return cachedData.length * 60