问题: 做了很多echarts图表页面 部署上线后 发现首次进入页面是有图表 第二次进入就不显示
查看结构 发现是由盒子存在的 如图
在初始化echarts之前清除下该属性即可实现:
const osteotomy_thickness1 = document.getElementById('osteotomy_thickness')
osteotomy_thickness1.removeAttribute("_echarts_instance_")
var osteotomy_thickness = echarts.init(osteotomy_thickness1);
欢迎留言交流~~