子路由和视频中老师一样配置的,为啥会报错,版本原因吗?我的是2.6
vue-router.esm.js?fe87:10 Uncaught Error: [vue-router] "path" is required in a route configuration
vue-router.esm.js?fe87:10 Uncaught Error: [vue-router] "path" is required in a route configuration
2021-01-13
从错误上来看,应该是你没有写path属性或者单词写错了~
vue-router@3 合并到vue-router@4:
https://router.vuejs.org/zh/guide/migration/index.html
举报