From 74fb0e3d1ab66d8763069931a03eefff2702e1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= Date: Fri, 13 Sep 2024 15:41:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BD=B4=E8=B7=A8=E5=A4=A9=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=A1=AE=EF=BC=8C=E4=BB=A5=E5=8F=8A=E8=B7=A8=E5=A4=A9?= =?UTF-8?q?=E5=90=8E=E5=88=87=E6=8D=A2=E6=97=B6=E9=97=B4=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BD=B4=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/TimeLine.vue | 5 +++-- src/views/detections/overview/EventsTimeline.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/common/TimeLine.vue b/src/components/common/TimeLine.vue index e714ed75..24f2fb1c 100644 --- a/src/components/common/TimeLine.vue +++ b/src/components/common/TimeLine.vue @@ -4,7 +4,7 @@
-
+
{{ item.time }}
@@ -111,7 +111,8 @@ export default { const month = date.getMonth() + 1 const day = date.getDate() const obj = { - time: `${date.getFullYear()}-${month < 10 ? ('0' + month) : month}-${day < 10 ? ('0' + day) : day}`, + // time: `${date.getFullYear()}-${month < 10 ? ('0' + month) : month}-${day < 10 ? ('0' + day) : day}`, + time: `${month < 10 ? ('0' + month) : month}-${day < 10 ? ('0' + day) : day}`, time1: changeTimestampToTime(timestamp).substring(0, changeTimestampToTime(timestamp).length - 3), showFlag: false } diff --git a/src/views/detections/overview/EventsTimeline.vue b/src/views/detections/overview/EventsTimeline.vue index 35bea91e..964b21bb 100644 --- a/src/views/detections/overview/EventsTimeline.vue +++ b/src/views/detections/overview/EventsTimeline.vue @@ -12,7 +12,7 @@
-
+
{{ item.time }}