fix: 尝试解决安全事件无法下拉问题

This commit is contained in:
chenjinsong
2022-03-09 20:10:28 +08:00
parent 9aedf25dd2
commit 32c3c47f73

View File

@@ -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('')