瀏覽代碼

no message

DESKTOP-SVI9JE1\muzen 1 年之前
父節點
當前提交
a5999b3881
共有 1 個文件被更改,包括 3 次插入1 次删除
  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 })
       })
     })