Mini Program canvas drawing test version of the drawImage picture does not come out, in fact, it is displayed normally

<template>
     <div>
     <canvas style="height: 500rpx;width: 500rpx;" canvas-id="myCanvas"></canvas>
     <image :src="imagePath" style="width: 200rpx;height: 200rpx;"/>
     </div>

</template>

<script>
export default {
  data(){
      return {
           imagePath:""
      }
  },
  methods:{
       draw(){
               let promise1 = new Promise((resolve, reject) =>{
                     wx.getImageInfo({
                            src:"https://avatar.csdn.net/F/3/9/3_ruffaim.jpg",
                            success: function(res) {
                                console.log("-----------------")
                            resolve(res);
                            },
                            fail:function(res){
                                console.log("fail-----------------")
                                reject(res);
                            }
                            
                     });
                });
                promise1.then(res =>{
                    console.log(res.path);
                    var ctx = wx.createCanvasContext("myCanvas");
                    ctx.drawImage(res.path,0,0,100,100);
                    ctx.draw(false,() =>{
                       wx.canvasToTempFilePath({
                    x: 0,
                    y: 0,
                    width: 200,
                    height:200,
                    canvasId: "myCanvas",
                    success: (res)=> {
                        this.imagePath = res.tempFilePath;
                    }, 
                })
             });

                }).catch(err =>{
                    
                })
                
                
          }
  },
  onShow(){
      this.draw()
  }

}
</script>
Sep.16,2021
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-1e8a9b2-fec.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-1e8a9b2-fec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?