1.报错 2.解决方法 在router文件的index.js中添加如下代码: // 注:VueRouter就是文件中引入的路由对象 // Handle navigation duplication error for router push (Globally) const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(() => { }); };