에러노트

[에러노트] NavigationDuplicated Navigating to current location ("/search") is not allowed

자바칩 프라푸치노 2021. 11. 30. 20:09

https://stackoverflow.com/questions/57837758/navigationduplicated-navigating-to-current-location-search-is-not-allowed

 

NavigationDuplicated Navigating to current location ("/search") is not allowed

When I want to do a search multiple times it shows me the NavigationDuplicated error. My search is in the navbar and the way I have configured the search is to take the value using a model and then...

stackoverflow.com

계속 같은 페이지로 이동하는 라우터가 있다고 하는 것 같음

 router.push({
   name: 'page',
   params: {
   key: list.key,
   },
   }, () => null);

이런식으로 에러처리를 해주어야한다.

728x90