Vue router adds custom parameters

It is usually necessary to add parameters in the router for specific scenarios, but the official API only gives a few parameters

Just add custom parameters in meta

router custom parameters

Dynamic parameters need to be added in dynamic routing

dynamic routing

The value can be taken from the meta

Guess you like

Origin blog.csdn.net/mrliucx/article/details/124065122