[vue-router] Duplicate named routes definition: { name: "日期时间", path: "/components/form/datetime" }
1.在router/index.js 中router.$addRoutes = (params) => {router.matcher = new Router({mode: 'history'}).matcherrouter.addRoutes(params)}2.在使用的地方this.$router.$addRoutes(routes)
·
1.在router/index.js 中
router.$addRoutes = (params) => {
router.matcher = new Router({mode: 'history'}).matcher
router.addRoutes(params)
}
2.在使用的地方
this.$router.$addRoutes(routes)
更多推荐
已为社区贡献5条内容
所有评论(0)