The introduction of echarts, into vue does not change the use of self-adaptation, can not find what the problem is, ask for advice.

Mar.23,2021

mounted () {

   
    let _this=this;
   window.addEventListener("resize",function (event) {
                    _this.canvas.resize();
     })
  }
  // _this.canvas =canvas

write monitoring


window.onresize

Menu