解决vue项目路由出现message: "Navigating to current location (xxxx) is not allowed"的问题

出现的错误: 出现这个错误的缘由是,在路由跳转的时候两次push的path地址相同vue 解决方法两种:web 1.切换版本回3.0版本vue-router 2.在你引了vue-router的js文件里加上以下代码便可svg /** * 重写路由的push方法 */ const routerPush = Router.prototype.push Router.prototype.push =
相关文章
相关标签/搜索