You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/11/24 07:39:41 UTC

[GitHub] [incubator-echarts] jiucheng-front commented on issue #13661: 微信小程序多次切换后白屏且会闪退

jiucheng-front commented on issue #13661:
URL: https://github.com/apache/incubator-echarts/issues/13661#issuecomment-732714983


   @Ovilia 是这样的(尝试过clear,dispose,设置为null没解决,才来寻求支援),小程序中按钮切换若使用wx:if(会导致DOM移除),这样每次切换就要重新执行echarts.init,会导致多次切换后图表空白(数据丢失),偶尔微信闪退。。换了方案(切换按钮不让DOM移除),只是想通过重新setOption更新图表,在微信开发者根据可以正常更新,在实际真机中就不会更新,setOption的第二个参数强行给true,还是不行!!有没有更好的解决方法了?


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org