// Push版本
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
//Replace版本
const originalReplace = Router.prototype.replace;
Router.prototype.replace = function replace(location) {
return originalReplace.call(this, location).catch(err => err);
}
vue-router在3.0版本以上重复点击菜单报错的问题
最新推荐文章于 2024-04-25 18:27:47 发布