fix: fix not to fail when no locales

pull/91/head
小倉優悟 5 years ago
parent 03264be895
commit f0d2b7e121

@ -44,6 +44,9 @@ export default {
const localeCandidates = computed(() => {
const locales = siteData.value.themeConfig.locales
if (!locales) {
return null
}
const localeKeys = Object.keys(locales)
if (localeKeys.length <= 1) {
return null

Loading…
Cancel
Save