运行 npm run api / npm run codegen(看自己项目配置,不一定是这个命令)自动生成api接口时,有时候会报Cannot read property 'body' of undefined
找到这个提示的文件........./node_modules/tkit-service/lib/yapi/serve.js:22
找到代码,打印输出结果
会发现是证书问题,https证书过期
重新在把证书配置一遍就好了(找领导,找运维,找自己)。