vue Uncaught Error: Redirected when going from “/*“ to “/*“ 路由報錯


 
Uncaught Error: Redirected when going from "/*" to "/*"  

報類似的錯 大部分因為觸發了vue-router 路由導航重定向了

 

簡單的方法就是直接觸發跳轉的邏輯上,把error拋出來

 this.$router.replace({
        path: this.$route.path,
        query
   })
 .catch(()=>{});//把error 拋出來

 

 

擴展參考 https://blog.csdn.net/ProgrammingWhite/article/details/107693339


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM