uini-app开发的微信小程序项目:从其他页面跳转到二维码生成页面,就会直接生成二维码,二维码生成成功,但是logo生成失败

- 发布:2025-04-29 11:40
- 更新:2025-04-29 14:19
- 阅读:57
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Microsoft Windows 10 专业版10.0.19045 内部版本 19045
HBuilderX类型: 正式
HBuilderX版本号: 4.57
第三方开发者工具版本号: 开发者工具 Stable 1.06.2412050
基础库版本号: 3.8.1
项目创建方式: HBuilderX
操作步骤:
预期结果:
uini-app开发的微信小程序项目:从其他页面跳转到二维码生成页面,就会直接生成二维码,二维码生成成功,但是logo生成失败
uini-app开发的微信小程序项目:从其他页面跳转到二维码生成页面,就会直接生成二维码,二维码生成成功,但是logo生成失败
实际结果:
uini-app开发的微信小程序项目:从其他页面跳转到二维码生成页面,就会直接生成二维码,二维码生成成功,但是logo生成失败
uini-app开发的微信小程序项目:从其他页面跳转到二维码生成页面,就会直接生成二维码,二维码生成成功,但是logo生成失败
bug描述:
Logo 绘制失败: [TypeError] Cannot read property 'nodeId' of undefined at pages/qrcode/qrcode.vue:185
index.esm.js:361 Logo 绘制失败: TypeError: Cannot read property 'nodeId' of undefined
at WAServiceMainContext.js?t=wechat&s=1745897606225&v=3.8.1:1
at HTMLImageElement.set src [as src] (index.js:9)
at _this4.ctx.fillStyle (qrcode.js:213)
at new Promise (<anonymous>)
at _callee4$ (qrcode.js:211)
at s (regeneratorRuntime.js?forceSync=true:1)
at Generator.<anonymous> (regeneratorRuntime.js?forceSync=true:1)
at Generator.next (regeneratorRuntime.js?forceSync=true:1)
at asyncGeneratorStep (asyncToGenerator.js?forceSync=true:1)
at c (asyncToGenerator.js?forceSync=true:1)