fix: 修复id改成ref导致echarts获取不到dom报错的问题
This commit is contained in:
@@ -699,7 +699,7 @@ export default {
|
|||||||
clearTimeout(this.timer)
|
clearTimeout(this.timer)
|
||||||
window.removeEventListener('resize', this.resize)
|
window.removeEventListener('resize', this.resize)
|
||||||
|
|
||||||
let myChart = echarts.getInstanceByDom(document.getElementById('overviewLineChart'))
|
let myChart = echarts.getInstanceByDom(this.$refs.overviewLineChart)
|
||||||
if (myChart) {
|
if (myChart) {
|
||||||
echarts.dispose(myChart)
|
echarts.dispose(myChart)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user