code refactor

This commit is contained in:
MaysWind
2020-11-22 14:00:36 +08:00
parent 9ab285a071
commit 9e1ec6d13c
6 changed files with 50 additions and 43 deletions
+2 -2
View File
@@ -92,14 +92,14 @@ export default {
return userInfo.nickname || userInfo.username || this.$t('User');
},
allLanguages() {
return this.$getAllLanguages();
return this.$locale.getAllLanguages();
},
currentLocale: {
get: function () {
return this.$i18n.locale;
},
set: function (value) {
this.$setLanguage(value);
this.$locale.setLanguage(value);
}
},
isEnableApplicationLock() {