Can vue configure the path of a child route without the path of the parent route?

when vue configures routing, it is as follows:

{
    path: "/app",
    name: "app",
    component: welcome,
    redirect: "app/first",
    children: [
      {
        path: "first",
        name: "first",
        component: first,
        redirect:"first/index",
        children:[
          {
            path: "index",
            name: "index",
            component: index       
          }
        ]
      }
    ]
 }

so that when you access the path, you want to access index. The path must be app/first/index.
is there any way to access the index of the child route of first without the path of the parent route first, that is, you can access the index page through app/index. The premise is that it is not allowed to change the parent-child relationship between first and index

Jan.09,2022

try aliases alias , Portal

Menu