src/components/Wind/Map.vue
@@ -669,7 +669,7 @@ // this.dateFormat = currentDate.toString() const aData = new Date() const month = aData.getMonth() < 9 ? '0' + (aData.getMonth() + 1) : aData.getMonth() + 1 const date = aData.getDate() const date = aData.getDate() < 10 ? '0' + aData.getDate() : aData.getDate() const hour = aData.getHours() const currentDate = aData.getFullYear() + '-' + month + '-' + date + ' ' + hour + ':00' this.dateFormat = currentDate.toString() @@ -1491,7 +1491,6 @@ this.times = 300 }, 100) } this.currentHour(); }, 1000) }, // 初始化地图容器