From bc485fcca720de2d8ad5457a0bd07785898a2f54 Mon Sep 17 00:00:00 2001 From: klgd Date: Mon, 25 Dec 2017 15:16:18 +0800 Subject: [PATCH] fix `this.language.default` is undefined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不存在 `this.language.default` 这样的写法吧 --- src/mavon-editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mavon-editor.vue b/src/mavon-editor.vue index 50db1d5b5..b18e70a65 100644 --- a/src/mavon-editor.vue +++ b/src/mavon-editor.vue @@ -502,7 +502,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;