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