CN-572 fix: 修复图表和地图内存泄漏问题
This commit is contained in:
@@ -146,7 +146,7 @@ export default {
|
||||
chartDom.innerHTML = '<span style="padding-left:5px;">-</span>'
|
||||
}
|
||||
}).catch(error => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
const chartDom = document.getElementById(`detectionMetricChartApp${this.detection.appName}`)
|
||||
chartDom.innerHTML = '<span style="padding-left:5px;">-</span>'
|
||||
}).finally(() => {
|
||||
|
||||
@@ -162,7 +162,6 @@ export default {
|
||||
|
||||
this.metricList.sort(reverseSortBy(0))// 将返回的数据按时间降序排序,方便找到实线和虚线的交点
|
||||
// let endIndex = (this.metricList). findIndex ((item) => item[0] <= 1435781434781 );
|
||||
console.log(this.detection)
|
||||
let endIndex = (this.metricList).findIndex((item) => item[0] <= this.detection.endTime)
|
||||
endIndex = this.metricList.length - endIndex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user