Vue.use(new VueSocketIO({ debug: true, connection: 'http://192.168.1.XXX:2120', vuex:{ } }))在 new Vue()之前,就可以使用,否则的话,socket可以连接,但是,你的components中的sockets的那些方法不会执行
我也刚好遇到,是否有解决方案