app-nvue页面:华为p20 鸿蒙系统。不确定是不是华为的问题,在app-nvue页面,切换底部tabBar的时候,有些时候是因为页面操作过快出现。有时候无故出来,出现的几率很频繁,有些时候正常。但是就是找不到原因。然后就出现白屏,加载不出任何东西。我试了下连created都没有进去。不确定这个bug还是写代码的原因导致的请问一下有遇到过这种类似的问题吗?大概是什么原因到导致的,就是找不到原因!
报错如下:
17:28:21.915 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property 'call_hook' of undefined
17:28:21.931 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property '__call_hook' of undefined
at (uni-jsframework.js:1:195715)
at (uni-jsframework.js:1:195980)
at vs (uni-jsframework.js:1:126240)
at switchTab (uni-jsframework.js:1:195123)
at (uni-jsframework.js:1:94721)
at X (uni-jsframework.js:1:57741)
at cv.<computed>.uv.<computed> (uni-jsframework.js:1:286546)
at (uni-jsframework.js:1:294269)
at (uni-jsframework.js:1:130858)
at CallbackManager.consume (uni-jsframework.js:1:1414)
17:28:22.936 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property 'call_hook' of undefined
17:28:22.949 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property '__call_hook' of undefined
at (uni-jsframework.js:1:195923)
at (uni-jsframework.js:1:195980)
at vs (uni-jsframework.js:1:126240)
at switchTab (uni-jsframework.js:1:195123)
at (uni-jsframework.js:1:94721)
at X (uni-jsframework.js:1:57741)
at cv.<computed>.uv.<computed> (uni-jsframework.js:1:286546)
at (uni-jsframework.js:1:294269)
at (uni-jsframework.js:1:130858)
at CallbackManager.consume (uni-jsframework.js:1:1414)
17:28:23.281 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property '__call_hook' of undefined
提交bug (作者)
他这个有时候重启下就没有了,也是因为写法导致的吗?
2024-03-27 15:41
提交bug (作者)
我发现问题了。uni-swipe-action-item 这个插件。官方文档上面写的是用的right-options。但是实际应该写rightOptions。
2024-03-27 17:17