Fix language dropdown
This commit is contained in:
parent
dfc20e90df
commit
71029c7955
|
@ -63,13 +63,7 @@
|
|||
},
|
||||
|
||||
buildLanguageRoute (locale: string | number) {
|
||||
const paths = this.$route.fullPath.split('/')
|
||||
|
||||
if (paths.length > 0 && Object.prototype.hasOwnProperty.call(this.availableLanguages, paths[0])) {
|
||||
return '/' + locale + '/' + paths.slice(1).join('/')
|
||||
}
|
||||
|
||||
return '/' + locale + this.$route.fullPath
|
||||
return '/' + locale
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -85,6 +79,7 @@
|
|||
}
|
||||
|
||||
.menu {
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid rgba(0,0,0,.15);
|
||||
|
|
Loading…
Reference in New Issue