修复TypeError: cannot read property id of undefined 查看错误,发现是module导入问题,关闭工程,删除node_modules,重新安装,重启,解决问题!