Vue-[vue-router] Named Route 'index' has a default child route.

Vue-router 警告:已经有一个默认的child route了。。。。的解决方法。

[vue-router] Named Route ‘index’ has a default child route. When navigating to this named route (:to=”{name: ‘index’”), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead.

解决方法

去掉父路由中的name属性即可。

文章作者: ahoj
文章链接: https://ahoj.cc/2019/05/Vue-vue-router-Named-Route-index-has-a-default-child-route/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ahoj 的小本本