{
path:"/ aaa/:id",
name: "aaa",
component: aaa
}
the current rules are as above
want to add something after path to match, for example:
/ aaa/12/uid/ UID number
12 is a dynamic route id
uid is a fixed
uid number is a dynamic
/ uid/uid number, this part is optional
I wrote this, but not correctly:
/ aaa/:id (/ uid/:uid)?
Please tell me how to write
when you encounter a previous route, you jump to the home page
/ aaa/12, which means that the previous route is also invalid
jump to the home page because this is the last part of the route:
{
path:"*",
redirect:"/"
}