«

vue 解决路径多次点击报错

时间:2023-5-29 20:26     作者:小诸葛     分类: Vue     正在检查是否收录...


在路由中如下配置即可解决

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

vue

推荐阅读:


扫描二维码,在手机上阅读