uni.canvasToTempFilePath({
x: 100,
y: 200,
width: 50,
height: 50,
destWidth: 100,
destHeight: 100,
canvasId: 'myCanvas',
success: function(res) {
console.log(res.tempFilePath)
}
})

- 发布:2020-09-18 10:12
- 更新:2020-09-19 14:38
- 阅读:630
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 2.8.8
手机系统: iOS
手机系统版本号: iOS 12.4
手机厂商: 苹果
手机机型: 7
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常返回
正常返回
实际结果:
无效
无效
bug描述:
hbx2.8.11版本中uni.canvasToTempFilePath ios成功失败都不走,android返回base64,在上一个以及之前的版本正常返回路径
圆y (作者)
我之前测试2.88 没问题,现在安卓2.88有问题了,但是新版的ios还是有问题
2020-09-23 18:26
8***@qq.com
回复 圆y: 那跟ios版本也没关系,我的ios12也不行
2020-10-20 09:18
DCloud_UNI_GSQ
回复 圆y: 自定义基座或者离线打包sdk版本与HBuilderX不符吧
2020-10-22 20:49