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
相關文章
相關標籤/搜索