title: Vuejs: Show confirmation dialog before route change
body: <p>In my vueJS project, I want to show confirmation dialog before the current route changes.
  <a href="https://i.stack.imgur.com/xH1vX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xH1vX.png" alt="enter image description here"></a></p>
  
  <p>On yes, it should redirect to next desired route otherwise keep it on same route.</p>
  
  <p>Any idea how to achieve it?</p>
  
  <p>Thanks in advance.</p>