DESKTOP-SVI9JE1\muzen il y a 1 an
Parent
commit
a5999b3881
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/components/GanttChart/index.vue

+ 3 - 1
src/components/GanttChart/index.vue

@@ -131,6 +131,9 @@ function getTime() {
       let d = nowDate.value.getDate()
       start = new Date(y, m, d).getTime() + start * 1000
       end = new Date(y, m, d).getTime() + end * 1000
+      if(i === 23) {
+        end = start + 3600000
+      }
     }
     data.timeList[i].timer[0] = start
     data.timeList[i].timer[1] = end
@@ -177,7 +180,6 @@ const modal = (res) => {
         }
       })
       list.map(e => {
-        e.list = []
         e.list.push({ ...i, listDate: j })
       })
     })