About easel, switch tab want to change a canvas to redraw according to the original method, why didn't it use

handleClickTabs (tab) {

    var index = tab.index
    if (index == 0) {
      this.stage = new createjs.Stage("canvas");
      console.log("11",this.stage)
    } else if (index == 1) {
      this.stage = new createjs.Stage("canvasKT");
      console.log("22",this.stage)
    }
    this.image1=new createjs.Bitmap("red.png");
    this.image2=new createjs.Bitmap("black.png");
    this.drawPoint()  //
  },

above, I just want to draw the same thing in the respective canvas of the two tab. I don"t want to write all the methods twice, but I don"t know why the above method works

.
May.06,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c1d3da-3335e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c1d3da-3335e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?