uniapp之 使用map组件有个小报错

怎么说

getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json

getLocation:失败的api需要在app.json/ext.json的requiredPrivateInfos字段中声明 

解决办法

"requiredPrivateInfos": [
    "getLocation",
    "onLocationChange",
    "startLocationUpdateBackground"
    "chooseAddress"
 ]

猜你喜欢

转载自blog.csdn.net/LJM51200/article/details/127684482