mounted() { let _this=this; window.addEventListener("resize",function (event) { _this.canvas.resize(); }) } // _this.canvas =》保存当前canvas的变量
mounted() {