Vue 项目启动时,报错Uncaught Error: [vue-router] "path" is required in a route configuration

学习Vue时控制台报错

[vue-router] "path" is required in a route configuration

原因:

router/index.js
  {
    name: 'Login',
    path: '/login',
    component: () => import('@/views/login/index'),
    hidden: true
  },
  {
    //配置路由时多了一个{}
  }