fix: 修复清缓存后国际化失效的问题

This commit is contained in:
陈劲松
2020-03-13 13:35:46 +08:00
parent 48a3968ecb
commit 46ac7be388
3 changed files with 4 additions and 3 deletions

View File

@@ -152,7 +152,7 @@
data() {
return {
username: sessionStorage.getItem("nz-username"),
language: '',
language: localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en',
assetData: [],
activeIndex:'',
activeItemIndex:'',
@@ -466,6 +466,7 @@
this.getUserData();
},
mounted() {
this.$i18n.locale = this.language;
this.getUserData();
this.getAssetData();
this.getProjectList();