由於新版本小程序開發做了更動
需要在app.json檔案中添加PermissionObject 結構
說明小程序獲取權限時展示的接口用途
如:
{ "pages": ["pages/index/index"], "permission": { "scope.userLocation": { "desc": "你的位置信息將用於小程序位置接口的效果展示" } } }
本文鏈接:https://blog.csdn.net/sun830910/article/details/86762947 特此記錄