每次切换 echarts 时要清除上一次的 echarts的图像
// 清除上次折线图数据 const charts = this.$refs.chart1; const myChart = echarts.init(charts); myChart.clear();