子路由和視頻中老師一樣配置的,為啥會(huì)報(bào)錯(cuò),版本原因嗎?我的是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
舉報(bào)
2022-04-19
從錯(cuò)誤上來看,應(yīng)該是你沒有寫path屬性或者單詞寫錯(cuò)了~
vue-router@3 合并到vue-router@4:
https://router.vuejs.org/zh/guide/migration/index.html