my parent route itself carries the parameter aa
but the child route in it also carries the parameter bb, but the aa in the path will not see
http://localhost:8080/-sharp/index/1 (1 is aa) this address will have a page and there will be a child route jump in this one. What I want is http://localhost:8080/-sharp/index/1/12 (1 is aa 12 is bb)
but every time he clicks, he jumps to http://localhost:8080/-sharp/index/12
every time the parameter aa in the parent route is missing
Why is that?
Click the jump code:
<router-link :to="item.bb" >{{item.name}}</router-link>
routing:
{
path: "/index/:aa",
name: "index",
component: index,
children:[
{path:"bb",name:"detail",component:detail},
]
},
then I tried to add append to < router-link >, but the first time it was OK. If I ordered something else, it would be wrong
.