碰到这个问题的老铁,是不是页面操作也可以正常实现呢?但有这个报错很碍眼?
像这样:

截图
直接说解决方案:
删除 node_modules ,到 package.json 中将 vue-router 改为 3.0.7 ,重新 npm i 即可。
但有时候路由降级太麻烦,可以尝试:
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location, onResolve, onReject) {
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
return originalPush.call(this, location).catch(err => err)
}