不允许从当前路由跳转到当前路由 import VueRouter from "vue-router";const originalPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err)}