This commit is contained in:
初志鑫 2020-07-22 14:06:32 +08:00
parent 37555011d2
commit 60dadc23c2

View File

@ -489,7 +489,9 @@ const router = new VueRouter({
}); });
//注释的地方是允许路由重复点击,如果你觉得框架路由跳转规范太过严格可选择放开 //注释的地方是允许路由重复点击,如果你觉得框架路由跳转规范太过严格可选择放开
/* const originalPush = VueRouter.prototype.push; /* const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) { 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); return originalPush.call(this, location).catch((err) => err);
}; */ }; */