这里有两个关于路由vue-router的问题
第一个问题:重复的路由
问题原因:路由配置文件中,name值重复
解决方案:在路由配置文件中搜索下是否有重复的name,使name值唯一即可。
第二个问题:
“Named Route 'NotFound' has a default child route. When navigating to this named route (:to="{name: 'NotFound'"), 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.”