Merge branch 'dev-3.9' of git.mesalab.cn:nezha/nezha-fronted into dev-3.10

This commit is contained in:
zyh
2023-11-29 17:09:50 +08:00

View File

@@ -257,6 +257,10 @@ export default {
computed: {
getDuration () {
return function (record) {
// 当 state = active | silence 时duration = 当前服务器时间result.time- startAt
if (record.state == 1 || record.state == 2) {
return calcDurationByStringTimeB(record.startAt, this.nowTime)
}
if (record.endAt) {
return calcDurationByStringTimeB(record.startAt, record.endAt)
}