mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
code refactor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user