Open bulolo opened 6 years ago
_this.ctx.draw(false, async() => { let res = await wepy.canvasToTempFilePath({ x: 0, y: 0, quality: 1, width: _this.cvsSize.width, height: _this.cvsSize.height, destWidth: _this.cvsSize.width * 10, destHeight: _this.cvsSize.height * 10, canvasId: 'avatarCanvas' }) try { await wepy.saveImageToPhotosAlbum({ filePath: res.tempFilePath }) } catch (error) { } this.$apply() })
出现第一次空白,只是开发者工具问题,到了真机,其实是不会出现空白。
谢谢
出现第一次空白,只是开发者工具问题,到了真机,其实是不会出现空白。