mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
deploy
This commit is contained in:
parent
37555011d2
commit
60dadc23c2
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user