Uncaught Error: [vue-router] “path“ is required in a route configuration.

Uncaught Error: [vue-router] “path“ is required in a route configuration._第1张图片
原因配置路由时不能写空{}

const router = new VueRouter({
    routes: [
        {
            name:'home',
            path:'/',
            component:Home,
            children:[{}]//去掉这一行
        }
    ]
})

你可能感兴趣的:(Bugs,vue,vue.js)