Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
初志鑫 committed Jul 22, 2020
1 parent 3755501 commit 60dadc2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,12 @@ const router = new VueRouter({
routes: constantRoutes,
});
//注释的地方是允许路由重复点击,如果你觉得框架路由跳转规范太过严格可选择放开
/*const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
/* const originalPush = VueRouter.prototype.push;
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);
};*/
}; */

export function resetRouter() {
router.matcher = new VueRouter({
Expand Down

0 comments on commit 60dadc2

Please sign in to comment.