Subscribe on changes!

接口动态获取路由数据进行配置后点击菜单链接报错,并警告No match found for location with path"/xxx/xxx"

avatar
Oct 12th 2020

What problem does this feature solve?

调用vue-router-next 的 addRoute() 方法后 返回的路由对象的matcher 为空数组,但旧版本是有值的。调试发现新版本的addRoute()不会再去执行createRouter()方法,所以才会导致matcher 为空,您这边有好的解决方案吗?

What does the proposed API look like?

avatar
Oct 12th 2020

最好去 vue-router-next 仓库下去提 issues