router.matcher.getRoutes is not a function

1,602 阅读1分钟

router.matcher.getRoutes is not a function

看官方文档说是可以通过getRoutes()方法获取,想查看所有的路由.

image.png

image.png

以此提醒自己,多看官方文档