lianchi commented on issue #7234: vue + echarts 单页面大数据加载性能问题
URL: 
https://github.com/apache/incubator-echarts/issues/7234#issuecomment-511662117
 
 
   @whidy 
   
   可以通过 `hook` 的方式在 `methods` 里添加钩子。
   ```js
   let chart = echarts.init(document.getElementById('my-chart'))
   this.$once('hook:beforeDestroy', function() {
       echarts.dispose(chart)
   })
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to