提交 933c73df 编写于 作者: Q qiang

修复 uni.canvasToTempFilePath 宽高默认值不正确的问题

上级 8c6118d6
......@@ -386,10 +386,10 @@ export default {
var imgData
var canvas = this.$refs.canvas
if (!width) {
width = canvas.offsetWidth
width = canvas.offsetWidth - x
}
if (!height) {
height = canvas.offsetHeight
height = canvas.offsetHeight - y
}
try {
const newCanvas = document.createElement('canvas')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册