two questions
what is the difference between 1.router.routes and router.options.routes? Print router, the latter is always available, the former sometimes does not have
2. After changing the meta of a route in router.route or router.options.routes, printing the meta, you can see that the change was successful, but in
watch: {
$route(to, from)
Console.log (to) in ; you can see that meta has not changed in to.
is there any way to solve this problem?
used when switching languages with i18n, some information is carried in the meta of the route.