The uniapp applet reports an error when using location. The WeChat applet reports an error wx.getLocation need to be declared in the requiredPrivateInfos field in app.js

1. Open it first to get the current geographical location and speed.

 2. Configure in code

"requiredPrivateInfos": ["getLocation"],

 

 

Guess you like

Origin blog.csdn.net/weixin_69666355/article/details/130923639