赞
踩
uniapp调试微信小程序报错:
routeDone with a webviewId 52 that is not the current page(env: Windows,mp,1.05.2110290; lib: 3.1.1)
解决办法:
在uniapp中的manifest.json的 "mp-weixin"添加一行代码:
"lazyCodeLoading": "requiredComponents"
- {
- "mp-weixin" : {
- "appid" : "xxxxxxxxxx",
- "setting" : {
- "urlCheck" : true,
- "es6" : false,
- "minified" : true,
- "postcss" : true
- },
- "optimization" : {
- "subPackages" : true
- },
- "usingComponents" : true,
- "permission" : {
- "scope.userLocation" : {
- "desc" : "用于获取地理位置进行打点"
- }
- },
- "lazyCodeLoading": "requiredComponents"
- },
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。