riku
2022-08-11 5656daeb79c6d4d3f9fc78f981c7faf96582d2f1
pages/promisesign/promisesign.js
@@ -6,6 +6,9 @@
   */
  data: {
    isDrawed: false,
    width: '1px',
    height: '1px'
  },
  //决定是否绘制的最小像素距离
@@ -166,6 +169,10 @@
        //this.ctxH -->所绘制canvas的height
        rotateCanvas.width = that.canvas.height;
        rotateCanvas.height = that.canvas.width;
        that.setData({
          width: rotateCanvas.width,
          height: rotateCanvas.height,
        })
        wx.canvasToTempFilePath({
          canvas: that.canvas,
          success(res) {