bgAudioManager.src
- 发布:2023-05-06 17:24
- 更新:2023-05-06 17:24
- 阅读:205
【报Bug】bgAudioManager 如果设置音频源就会报错 TypeError: Cannot read property 'apply' of undefined
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10 21h2
HBuilderX类型: 正式
HBuilderX版本号: 3.7.11
浏览器平台: Chrome
浏览器版本: 113.0.5672.63
项目创建方式: HBuilderX
操作步骤:
预期结果:
可以播放音频
可以播放音频
实际结果:
报错
[system]TypeError: Cannot read property 'apply' of undefined
at r (http://localhost:8080/static/js/chunk-vendors.js:15780:481431)
at t.l.forEach.t.readonly.r.set (http://localhost:8080/static/js/chunk-vendors.js:15780:457950)
at VueComponent.jump (webpack-internal:///Q2Ht:66:26)
at click (http://localhost:8080/static/js/pages-index-index.js:167:21)
at invokeWithErrorHandling (http://localhost:8080/static/js/chunk-vendors.js:4263:26)
at HTMLElement.invoker (http://localhost:8080/static/js/chunk-vendors.js:4588:14)
at HTMLElement.original._wrapper (http://localhost:8080/static/js/chunk-vendors.js:9472:25)
报错
[system]TypeError: Cannot read property 'apply' of undefined
at r (http://localhost:8080/static/js/chunk-vendors.js:15780:481431)
at t.l.forEach.t.readonly.r.set (http://localhost:8080/static/js/chunk-vendors.js:15780:457950)
at VueComponent.jump (webpack-internal:///Q2Ht:66:26)
at click (http://localhost:8080/static/js/pages-index-index.js:167:21)
at invokeWithErrorHandling (http://localhost:8080/static/js/chunk-vendors.js:4263:26)
at HTMLElement.invoker (http://localhost:8080/static/js/chunk-vendors.js:4588:14)
at HTMLElement.original._wrapper (http://localhost:8080/static/js/chunk-vendors.js:9472:25)
bug描述:
如果添加bgAudioManager.src 就会报错 TypeError: Cannot read property 'apply' of undefined
[system]TypeError: Cannot read property 'apply' of undefined
at r (http://localhost:8080/static/js/chunk-vendors.js:15780:481431)
at t.l.forEach.t.readonly.r.set (http://localhost:8080/static/js/chunk-vendors.js:15780:457950)
at VueComponent.jump (webpack-internal:///Q2Ht:66:26)
at click (http://localhost:8080/static/js/pages-index-index.js:167:21)
at invokeWithErrorHandling (http://localhost:8080/static/js/chunk-vendors.js:4263:26)
at HTMLElement.invoker (http://localhost:8080/static/js/chunk-vendors.js:4588:14)
at HTMLElement.original._wrapper (http://localhost:8080/static/js/chunk-vendors.js:9472:25)