在vue中使用ElementUI的按钮跳转遇到的问题

路由跳转正常,但是会报错

解决方法很简单 去路由的index.js添加

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

谢谢阅读

posted on 2020-04-20 17:02  哼着老调调  阅读(2189)  评论(0编辑  收藏  举报

聊天   切换waifu!  换衣服!   拍照!   许愿吧cxy