I don’t know what is missing. Now the address has changed but the data has not changed. Please give me guidance, I am new to vue-router
迷茫2017-06-28 09:26:10
There are the following points:
Not all Router
have name
, so maybe key()
is a fake branch. Since $route
is an object, $route + +new Date()
is possible is an invalid value
$route.matched
may not contain a name
value, so the filter
method may return an empty array, making subsequent data processing impossible.
If it is hot loading, it is recommended to force refresh the browser cache.