try to fix blog change language

This commit is contained in:
2020-12-17 17:51:00 +01:00
parent 8023fe5a3d
commit 7e01316426

View File

@@ -122,7 +122,7 @@ export default {
async changeLanguage(lang) {
this.$i18n.setLocale(lang)
if (this.$router.currentRoute.fullPath.includes('blog')) {
await this.$router.push('blog')
await this.$router.push('/blog')
}
},
},