TofFawnH
TofFawnH
  • 发布:2024-04-26 13:42
  • 更新:2024-04-26 14:28
  • 阅读:93

uni.scanCode扫码后跳转页面,页面卡住了,点击任何绑定了事件的按钮都报错

分类:uni-app

Failed to execute the callback function:
TypeError: Cannot read property 'fireEvent' of undefined

每点击一次报错一次

2024-04-26 13:42 负责人:无 分享
已邀请:
TofFawnH

TofFawnH (作者) -

Hbuildx 3.99,vue3

TofFawnH

TofFawnH (作者) -

没扫码真机调试也概率触发
reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property 'fireEvent' of undefined
at oP (uni-jsframework.js:32:239765)
at (uni-jsframework.js:32:239912)
at aP (uni-jsframework.js:32:239861)
at emit (uni-jsframework.js:17:11122)
at subscribeHandler (uni-jsframework.js:32:45543)
at (uni-jsframework.js:32:241838)
at emit (uni-jsframework.js:17:11122)
at subscribeHandler (uni-jsframework.js:32:45543)
at Lg (uni-jsframework.js:32:238513)
at consume (uni-jsframework.js:17:15411)

TofFawnH

TofFawnH (作者) -

应该是在首页请求了列表,每个列表子项里都进行了uni.preloadPage预加载页面,导致一次性预加载10个页面卡死了

  • TofFawnH (作者)

    去掉就正常了

    2024-04-26 14:28

要回复问题请先登录注册