code refactor

This commit is contained in:
MaysWind
2024-11-04 00:20:05 +08:00
parent 501de6ffef
commit 9a67af7c55
4 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -245,9 +245,9 @@ export default {
try {
exchangeRateAmount = getConvertedAmount(this.baseAmount / 100, fromExchangeRate, toExchangeRate);
} catch (e) {
} catch (ex) {
exchangeRateAmount = 0;
logger.warn('failed to convert amount by exchange rates, original base amount is ' + this.baseAmount)
logger.warn('failed to convert amount by exchange rates, original base amount is ' + this.baseAmount, ex)
}
return this.$locale.formatExchangeRateAmount(this.userStore, exchangeRateAmount);