提交 7f311da3 编写于 作者: U ULIVZ 提交者: Evan You

fix: Only add language dropdown when there has more than one locale configured. (#181)

上级 384c5c7d
......@@ -34,7 +34,7 @@ export default {
},
nav () {
const { locales } = this.$site
if (locales) {
if (locales && Object.keys(locales).length > 1) {
let currentLink = this.$page.path
const routes = this.$router.options.routes
const themeLocales = this.$site.themeConfig.locales || {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册