Vue中報錯: Uncaught (in promise) Error:Redirected when going from 「x「 to 「x「 via a navigation guard

項目中遇到如圖的錯誤 是因爲router的版本問題 和vue/lic有衝突 解決方法: 刪除 node_modules ,到 package.json 中將 vue-router 改爲最新穩定版 ,當然vue/cli也要是最新版,重新 npm i (未測試) // 解決router版本過高 重複點擊路由控制檯報錯問題 const originalPush = VueRouter.prototype
相關文章
相關標籤/搜索