echart applet bug cannot read property 'hide' of undfined

The applet used echarts and reported the error "cannot read property 'hide' of undfined"
Insert image description here. I searched for it for a long time but couldn't find it. Later I found that the element was not obtained in init.
Insert image description here
Just add this.

If you cut out and come back, there will be no picture and an error will be reported.

Just get the data in onshow

Guess you like

Origin blog.csdn.net/Yannnnnm/article/details/115295193