mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
code refactor
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
>
|
||||
<template #title>
|
||||
<f7-block class="no-padding no-margin">
|
||||
<span>{{ $t(`currency.${user.defaultCurrency}`) }} </span>
|
||||
<span>{{ getCurrencyName(user.defaultCurrency) }} </span>
|
||||
<small class="smaller">{{ user.defaultCurrency }}</small>
|
||||
</f7-block>
|
||||
</template>
|
||||
@@ -399,6 +399,9 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
getCurrencyName(currencyCode) {
|
||||
return this.$locale.getCurrencyName(currencyCode);
|
||||
},
|
||||
getCategoryTypeName(categoryType) {
|
||||
switch (categoryType) {
|
||||
case categoryConstants.allCategoryTypes.Income.toString():
|
||||
|
||||
Reference in New Issue
Block a user