From d7bcf24e900cf885f5832e8e5c5aaa8a24aefa16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=AF=B8=E7=81=B0?= Date: Tue, 17 Dec 2024 15:37:12 +0800 Subject: [PATCH] fix(projects): :bug: fix gantt chart change (#26) --- src/views/plugin/gantt/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/plugin/gantt/index.vue b/src/views/plugin/gantt/index.vue index bc02a8b..90b2d1b 100644 --- a/src/views/plugin/gantt/index.vue +++ b/src/views/plugin/gantt/index.vue @@ -141,10 +141,10 @@ function initGantt() { gantt.ext.zoom.setLevel(timeType.value); } -// function changeTime(value: string | number) { -// timeType.value = value as TimeType; -// gantt.ext.zoom.setLevel(value); -// } +function changeTime(value: string | number) { + timeType.value = value as TimeType; + gantt.ext.zoom.setLevel(value); +} onMounted(() => { initGantt(); @@ -157,7 +157,7 @@ onMounted(() => {