Commit 06855163 authored by zhangyanni's avatar zhangyanni

i18n初始化解析

parent 09e81e7e
......@@ -72,7 +72,7 @@ if(!window.sessionStorage.getItem("language")){
var en = window.sessionStorage.getItem("language");
Vue.config.productionTip = false;
const i18n = new VueI18n({
locale: en, // 语言标识
locale: en||"zh-CN", // 语言标识
//this.$i18n.locale // 通过切换locale的值来实现语言切换
messages: {
'zh-CN': require('./common/lang/zh'), // 中文语言包
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment