浏览代码

更新 'src/views/bigScreen/goafCameraAlarm/index.vue'

zhaobao 7 月之前
父节点
当前提交
cf75d3a1b1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/bigScreen/goafCameraAlarm/index.vue

+ 2 - 1
src/views/bigScreen/goafCameraAlarm/index.vue

@@ -197,7 +197,8 @@ export default {
   created() {
   created() {
     const date = new Date()
     const date = new Date()
     const today = `${date.getFullYear()}, ${date.getMonth() + 1}, ${date.getDate()}`
     const today = `${date.getFullYear()}, ${date.getMonth() + 1}, ${date.getDate()}`
-    const tomorrow = `${date.getFullYear()}, ${date.getMonth() + 1}, ${date.getDate() + 1}`
+    date.setDate(date.getDate() + 1)
+    const tomorrow = `${date.getFullYear()}, ${date.getMonth() + 1}, ${date.getDate()}`
     const startLoadTime = parseTime(today)
     const startLoadTime = parseTime(today)
     const endLoadTime = parseTime(tomorrow)
     const endLoadTime = parseTime(tomorrow)
     this.conditions.startLoadTime = startLoadTime
     this.conditions.startLoadTime = startLoadTime