vue-router文档$route.params参考vue-router文档,可通过$route对象获取params参数对象。同时transition对象的to, from都可以获取$route对象。