收藏
回答

vant组件库 van-loading 扫码预览报错 但真机运行没问题?

<van-overlay z-index="999999" show="{{ loading }}">
   
    <van-loading vertical="{{true}}"  color="#00b26a" size="24px">加载中...</van-loading>

</van-overlay>


这段代码运行在手机上会报错

SystemError (jsEnginScriptError)
Cannot read properties of undefined (reading 'index')
TypeError: Cannot read properties of undefined (reading 'index')
at u (common.app.js:1:31115)
at (common.app.js:1:31319)
    at Array.forEach (<anonymous>)
at (common.app.js:1:31296)
at (@vant/weapp/loading/index.appservice.js:1:1067)
at t.handleChildrenCreation (common.app.js:1:30528)
at (common.app.js:1:30777)
at (@vant/weapp/loading/index.appservice.js:1:746)
at t.handleChildrenCreation (common.app.js:1:30528)
at (common.app.js:1:30777)

routeDone with a webviewId -988492509 that is not the current page


我想知道是因为什么,如何解决



Xiaomi 12s Android 14 Weixin 8.0.40 基础库3.0.0



回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容