解决Vue项目开发中,路由出现message: "Navigating to current location (XXX) is not allowed"的问题原因:在路由中重复添加了路由解决:const routerPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(location) { return routerPush.call(this, location).catch(error=> e