From 761dc97c8ac017e5d57b331f7bcf3cfaf1ca1159 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 08 Nov 2024 15:44:06 +0800
Subject: [PATCH] fix: 无人机轨迹修改

---
 src/views/toCarryOutLegislativeReforms/summaryPage/index.vue |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue b/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
index b5f8c3d..1833507 100644
--- a/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
+++ b/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
@@ -397,13 +397,12 @@
       })
     },
     getPeriods (month) {
-      const now = new Date()
+      const today = new Date()
       const end = new Date(new Date())
-      const today = new Date(now.getFullYear(), now.getMonth(), now.getDate())
       // ������������������������������
       const oneMonthAgo = new Date(today)
       oneMonthAgo.setMonth(oneMonthAgo.getMonth() - month)
-      const startTime = oneMonthAgo.toISOString().split('T')[0]
+      const startTime = oneMonthAgo.toISOString().substring(0, 10)
       const endTime = end.toISOString().substring(0, 10)
       console.log('startTime', startTime, 'endTime', endTime)
       return [startTime, endTime]

--
Gitblit v1.8.0