[Vuejs]-Refreshing page after router redirection

0👍

You need to add a :key attribute to your <router-view>

<router-view :key="$route.fullPath"></router-view>

Your ${projet.id} will be different each time, hence reload will be triggered.


Edit

$route.fullPath Vue API

  • type: string
  • The full resolved URL including query and hash.

Leave a comment