diff --git a/components/Header.vue b/components/Header.vue index c5c44ae..5cc4971 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -121,7 +121,9 @@ export default { }, async changeLanguage(lang) { this.$i18n.setLocale(lang) - await this.$router.push('/') + if (this.$router.currentRoute.fullPath.includes('blog')) { + await this.$nuxt.refresh() + } }, }, mounted() { diff --git a/components/Post.vue b/components/Post.vue index 72bf647..5e03cae 100644 --- a/components/Post.vue +++ b/components/Post.vue @@ -1,7 +1,7 @@