w***@foxmail.com
w***@foxmail.com
  • 发布:2021-05-17 18:55
  • 更新:2021-05-17 18:55
  • 阅读:409

uni.canvasToTempFilePath 方法在离线打包app上不会执行

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: window10

HBuilderX类型: 正式

HBuilderX版本号: 3.1.13

手机系统: Android

手机系统版本号: Android 10

手机厂商: 小米

手机机型: 小米9

页面类型: vue

打包方式: 离线

项目创建方式: HBuilderX

示例代码:
                uni.canvasToTempFilePath({  
                    canvasId: 'mycanvas',  
                    fileType: 'jpg',  
                    success: function(res) {  
                        _this.upLoadSign(res.tempFilePath)  
                    }  
                })

操作步骤:
                uni.canvasToTempFilePath({  
                    canvasId: 'mycanvas',  
                    fileType: 'jpg',  
                    success: function(res) {  
                        _this.upLoadSign(res.tempFilePath)  
                    }  
                })

预期结果:

签名完成后上传签名

实际结果:

未调用上传方法

bug描述:

uni.canvasToTempFilePath 方法在离线打包app上不会执行success方法,使用基座和内置浏览器运行时可以执行

2021-05-17 18:55 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复