mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
code refactor
This commit is contained in:
@@ -320,7 +320,7 @@ export default {
|
||||
name: '',
|
||||
icon: self.$constants.icons.defaultAccountIconId,
|
||||
color: self.$constants.colors.defaultAccountColor,
|
||||
currency: self.$user.getUserInfo() ? self.$user.getUserInfo().defaultCurrency : self.$t('default.currency'),
|
||||
currency: self.$store.getters.currentUserDefaultCurrency || self.$t('default.currency'),
|
||||
balance: 0,
|
||||
comment: '',
|
||||
visible: true,
|
||||
@@ -447,9 +447,9 @@ export default {
|
||||
category: null,
|
||||
type: null,
|
||||
name: '',
|
||||
icon: this.account.icon,
|
||||
color: this.account.color,
|
||||
currency: self.$user.getUserInfo() ? self.$user.getUserInfo().defaultCurrency : self.$t('default.currency'),
|
||||
icon: self.account.icon,
|
||||
color: self.account.color,
|
||||
currency: self.$store.getters.currentUserDefaultCurrency || self.$t('default.currency'),
|
||||
balance: 0,
|
||||
comment: '',
|
||||
visible: true,
|
||||
|
||||
@@ -214,7 +214,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
defaultCurrency() {
|
||||
return this.$user.getUserInfo() ? this.$user.getUserInfo().defaultCurrency : this.$t('default.currency');
|
||||
return this.$store.getters.currentUserDefaultCurrency || this.$t('default.currency');
|
||||
},
|
||||
allAccountCategories() {
|
||||
return this.$constants.account.allCategories;
|
||||
|
||||
Reference in New Issue
Block a user