// 避免多次点击导航报错
const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err);
};
// 避免多次点击导航报错
const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err);
};
本文标题:vue 避免多次点击导航报错
本文链接:https://www.haomeiwen.com/subject/cuqgektx.html
网友评论