1、路由版本错误
Cannot read properties of undefined (reading ‘install‘)
错误原因:vue 版本和 vue-router 版本不匹配
vue-router4.x
之后的版本适合Vue3
npm uninstall vue-router
npm install --save vue-router@3.6.5 // vue2适合3.x版本
2、Cannot read properties of undefined (reading ‘_self‘)
routes中的是component,而不是compoents