原文:Avoided redundant navigation to current location

問題 在做菜單跳轉功能時,發現如果多次點擊同一個項,發生重復跳轉就會報錯。 Avoided redundant navigation to current location... 解決 高版本 VueRouter 新加的報錯信息,第一種辦法是減低 VueRouter 的版本。 第二種辦法是:在router文件夾下的index.js中添加以下代碼: ...

2020-07-18 17:28 0 1069 推薦指數:

查看詳情

Vue Avoided redundant navigation to current location Error

這個報錯的根源就是vue-router組件,錯誤內容翻譯一下是: Avoided redundant navigation to current location === 避免冗余導航到當前位置 這個問題的解決方案就是屏蔽它,就是重寫vue-router的push方法,不影響正常使用 ...

Thu Jun 25 01:42:00 CST 2020 0 3244
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM