提示Cannot read property ‘push’ of undefined 出错代码 出错原因是再forEach函数中的this指向的不是vue 修改后: 参考 https://segmentfault.com/q/1010000007383512