![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
cx201125
这个作者很懒,什么都没留下…
展开
-
[vue-router] Named Route ‘Home‘ has a default child route. When navigating to this named route....
问题描述 在Vue的项目中使用了Vue-Router,当某个路由有子级路由时,如下写法: export default new Router({ routes: [ { path: '/', name: 'home', component: Home, children:[ { path:'/', name: 'console', component: Console,原创 2020-11-09 13:01:32 · 888 阅读 · 1 评论 -
在VUE中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复
在VUE中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复 解决:router文件夹下面的index.js中加上下面几句代码 // 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题 //这里Router是引用的Router组件,我这里的名字是Router, const originalPush = Router.prototype.push Router.prototype.pus原创 2020-11-08 20:51:43 · 209 阅读 · 0 评论