1***@163.com
1***@163.com
  • 发布:2024-10-11 17:30
  • 更新:2024-10-17 11:38
  • 阅读:176

HBuilder从4.24升级到4.29,uni.chooseLocation报错:[JS Framework] Failed to execute the callback function

分类:HBuilder

升级前功能正常,升级之后选择坐标位置API异常,报错如下:

[JS Framework] Failed to execute the callback function:
TypeError: Cannot read property 'pageIndex' of null
17:21:04.248 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property 'pageIndex' of null
at (/__uniappchooselocation.js.nvue:1:25432)

查询源码,大概在这里: (e._searchPageIndex = t.pageIndex + 1), (e.searchEnd = t.pageIndex === t.pageNumber), t.poiList && t.poiList.length ? (e.fixPois(t.poiList), (e.searchList = e.searchList.concat(t.poiList))) (e.noSearchData = 0 === e.searchList.length);

地图配置均未改过

2024-10-11 17:30 负责人:无 分享
已邀请:

要回复问题请先登录注册