code refactor

This commit is contained in:
MaysWind
2020-11-09 23:56:11 +08:00
parent b2b8dcb098
commit 8fa305212a
5 changed files with 138 additions and 114 deletions
+4 -4
View File
@@ -44,11 +44,8 @@
<script>
export default {
data() {
const self = this;
return {
logouting: false,
allLanguages: self.$getAllLanguages()
logouting: false
};
},
computed: {
@@ -59,6 +56,9 @@ export default {
const userInfo = this.$user.getUserInfo() || {};
return userInfo.nickname || userInfo.username || this.$t('User');
},
allLanguages() {
return this.$getAllLanguages();
},
currentLocale: {
get: function () {
return this.$i18n.locale;