|
@@ -56,6 +56,10 @@ Page({
|
|
|
.boundingClientRect(rect => {
|
|
|
this.data.canvasWidth = rect.width * this.data.dpr
|
|
|
this.data.canvasHeight = rect.height * this.data.dpr
|
|
|
+ this.setData({
|
|
|
+ canvasWidth:this.data.canvasWidth,
|
|
|
+ canvasHeight:this.data.canvasHeight
|
|
|
+ })
|
|
|
})
|
|
|
.exec()
|
|
|
const query1 = wx.createSelectorQuery()
|