用了map这个组件之后,右侧出现报红的问题,但不影响程序能够运行,也百度谷歌之类过了,未找到相应的解决方案
提示出现 这种错误
如下:[渲染层错误] MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 501 move listeners added. Use emitter.setMaxListeners() to increase limit
at a (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:169165)
at e.o.addListener (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:171989)
at hc.value (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:242397)
at hc.value (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:243172)
at hc.e (https://map.qq.com/api/gljs?v=1.exp&key=6GUBZ-WOJKX-J7H46-7WVQI-E7A66-UTB4X&callback=__map_jssdk_init:11:242110)
at new hc (http://127.0.0.1:19594/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1622424708859&v=2.17.0:2:948556)
at http://127.0.0.1:19594/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1622424708859&v=2.17.0:2:960203
at Array.forEach (<anonymous>)
at a.updateMultiMarker (http://127.0.0.1:19594/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1622424708859&v=2.17.0:2:959410)
at http://127.0.0.1:19594/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1622424708859&v=2.17.0:2:958683(env: Windows,mp,1.05.2105170; lib: 2.17.0)
uniapp开发的,你得去uniapp社区去找解决方法
找到了个解决方案了,减少请求的个数
本来请求了1000个
现在减少到450个了