Skip to content

Commit

Permalink
Merge pull request #161 from klgd/patch-1
Browse files Browse the repository at this point in the history
fix `this.language.default` is undefined
  • Loading branch information
hinesboy authored Mar 14, 2018
2 parents baa921e + bc485fc commit ad3992a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavon-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
this.d_history_index = this.d_history.length - 1
},
initLanguage() {
let lang = CONFIG.langList.indexOf(this.language) >= 0 ? this.language : this.language.default;
let lang = CONFIG.langList.indexOf(this.language) >= 0 ? this.language : 'zh-CN';
var $vm = this;
$vm.$render(CONFIG[`help_${lang}`], function(res) {
$vm.d_help = res;
Expand Down

0 comments on commit ad3992a

Please sign in to comment.