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

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

开发环境 版本号 项目创建方式
Windows window10 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方法,使用基座和内置浏览器运行时可以执行


更多关于uni-app中uni.canvasToTempFilePath方法在离线打包APP上不会执行的实战教程也可以访问 https://www.itying.com/category-93-b0.html

回到顶部