使用goEasy的pubsub功能,搭建即时消息,遇到这个问题: 在微信打开网页后,隐藏微信,再打开就会报错:Cannot read property 'mpType' of undefined。 经过一番辛苦的打包测试,看打包源码,发现是因为h5端的uni统计导致了此问题,关闭后,即正常!