NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated"
作者:互联网
在使用ElementUi时点击同一个路由,页面报错
查询后解决方式如下
import Router from 'vue-router' const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }
标签:name,err,NavigationDuplicated,location,push,Router,prototype 来源: https://www.cnblogs.com/suiyide/p/11351057.html