📜  vue 路由器默认页面未加载 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:11.886000             🧑  作者: Mango

代码示例1
...
  {
      props: true,
      path: '/sections/:id',
      name: 'route.sections',
      component: Sections,
      redirect: {
        name: 'route.details'
      },
      children: [
        {
          alias: '',
          path: 'details',
          name: 'route.details',
          component: Details
        },
        {
          path: 'secondary',
          name: 'route.secondary',
          component: Secondary
        }
      ]
    }
...