From 32c3c47f736823a6772cc55f3ac9017d271f24bf Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 9 Mar 2022 20:10:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E4=BA=8B=E4=BB=B6=E6=97=A0=E6=B3=95=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detections/overview/DetectionSecurityEventOverview.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/detections/overview/DetectionSecurityEventOverview.vue b/src/views/detections/overview/DetectionSecurityEventOverview.vue index f0661068..1183ed26 100644 --- a/src/views/detections/overview/DetectionSecurityEventOverview.vue +++ b/src/views/detections/overview/DetectionSecurityEventOverview.vue @@ -172,13 +172,14 @@ export default { }, computed: { formatT0 () { + const vm = this return function (event) { const diffSeconds = event.diffSeconds if (diffSeconds === 0) { return 'T0' } const eventStartTime = event.startTime - const entityStartTime = this.detection.startTime + const entityStartTime = vm.detection.startTime if (_.isNumber(diffSeconds) && _.isNumber(eventStartTime) && _.isNumber(entityStartTime)) { const suffix = unitConvert(diffSeconds, unitTypes.time, 's', null, 0).join('')