Add: key="key" in <router-view>< /router-view> in main.js!
<template>
<div>
<router-view :key="key()"></router-view>
</div>
</template>
<script>
export default {
name: 'App',
methods:{
key(){
return Math.random();
}
}
}
</script>