Skip to content

Commit

Permalink
fix: ensure runnable when no locales are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 18, 2018
1 parent 4cf1232 commit a25d86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/dataMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
return store.siteData
},
$localeConfig () {
const { locales } = this.$site
const { locales = {}} = this.$site
let targetLang
let defaultLang
Object.keys(locales).forEach(path => {
Expand Down

0 comments on commit a25d86c

Please sign in to comment.