mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
code refactor
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
>
|
||||
<template #title>
|
||||
<div class="no-padding no-margin">
|
||||
<span>{{ $t(`currency.${baseCurrency}`) }} </span>
|
||||
<span>{{ getCurrencyName(baseCurrency) }} </span>
|
||||
<small class="smaller">{{ baseCurrency }}</small>
|
||||
</div>
|
||||
</template>
|
||||
@@ -207,6 +207,9 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
getCurrencyName(currencyCode) {
|
||||
return this.$locale.getCurrencyName(currencyCode);
|
||||
},
|
||||
getConvertedAmount(toExchangeRate) {
|
||||
const fromExchangeRate = this.exchangeRatesStore.latestExchangeRateMap[this.baseCurrency];
|
||||
return getConvertedAmount(this.baseAmount / 100, fromExchangeRate, toExchangeRate);
|
||||
|
||||
Reference in New Issue
Block a user