1.如果在使用路由过程中会报
Cannot read properties of undefined (reading ‘install’)
是因为vue-router版本跟vue的版本不匹配
匹配规则
vue2--->vue-router3
vue3--->vue-router4
1.如果在使用路由过程中会报
Cannot read properties of undefined (reading ‘install’)
是因为vue-router版本跟vue的版本不匹配
匹配规则
vue2--->vue-router3
vue3--->vue-router4