vue-router——message: "Navigating to current location (XXX) is not allowed"

解决方法: 法一:重写规则 import VueRouter from "vue-router"; const [routerPush, routerReplace] = [VueRouter.prototype.push, VueRouter.prototype.replace]; VueRouter.prototype.push = function push(location) { r
相关文章
相关标签/搜索