Too many active webGL contexts. Oldest context will be lost
2024-02-11vue项目,浏览器报错:Too many active webGL contexts. Oldest context will be lost。报错原因:在项目中使用了echarts-gl组件,切换页面后组件不销毁,一直累积。解决方法:在每次初始化图表之前,把之前的组件销毁掉。全部代码如下,echarts-gl用法来自于。_too many active webGL contexts. oldest context will be lost