How to control the default display of one of the subcomponents in vue?

clipboard.png
router.js

 {
      path:"/index",
      name:"index",
      component:index,
      children:[
        {
          path:"/device/user",
          name:"user",
          component:user,
            children:[
             {
              path: "/device/deviceDisplay",
              name: "deviceDisplay",
              component: deviceDisplay
             }
           ]
        }

the grandchild component will not come out until I click on the sub-component in the diagram. How to set it to appear in the above picture style when clicking on the parent component?



      path:'/index',
      name:'index',
      component:index,
      redirect:'/device/deviceDisplay',
      children:[
        {
          path:'/device/user',
          name:'user',
          component:user,
            children:[
             {
              path: '/device/deviceDisplay',
              name: 'deviceDisplay',
              component: deviceDisplay
             }
           ]
        }

what I understand is that the first one is selected by default and redirected

clipboard.png

ide/essentials/redirect-and-alias.html" rel=" nofollow noreferrer "> https://router.vuejs.org/zh/g.

Menu