xxxxxxxxxx
<template>
<button @click="refreshPage">Refresh Page</button>
</template>
<script>
export default {
methods: {
refreshPage() {
this.$router.go();
// Or if you want to refresh current route without any query or parameter changes, you can use:
// this.$router.replace({ path: '/' });
},
},
};
</script>