随心笔记 · 2021年1月8日 0

[vue-router] Duplicate named routes definition

浏览器告警信息 [vue-router] Duplicate named routes definition: { name: “index”, path: “/index” }

  • 说明路由命名的name属性重复
  • 举 例 { path: ‘’, name: ‘index’, redirect: ‘/fiibox/personHome’ },
  • 改正: { path: ‘’, name: ‘’, redirect: ‘/fiibox/personHome’ },