support user custom exchange rates data

This commit is contained in:
MaysWind
2025-05-26 00:47:19 +08:00
parent c4d20c539f
commit 817291c9a7
41 changed files with 1257 additions and 73 deletions
+4
View File
@@ -22,7 +22,9 @@ export function useExchangeRatesPageBase() {
const baseCurrency = ref<string>(userStore.currentUserDefaultCurrency);
const baseAmount = ref<number>(100);
const defaultCurrency = computed<string>(() => userStore.currentUserDefaultCurrency);
const exchangeRatesData = computed<LatestExchangeRateResponse | undefined>(() => exchangeRatesStore.latestExchangeRates.data);
const isUserCustomExchangeRates = computed<boolean>(() => exchangeRatesStore.isUserCustomExchangeRates);
const exchangeRatesDataUpdateTime = computed<string>(() => {
const exchangeRatesLastUpdateTime = exchangeRatesStore.exchangeRatesLastUpdateTime;
@@ -55,7 +57,9 @@ export function useExchangeRatesPageBase() {
baseCurrency,
baseAmount,
// computed states
defaultCurrency,
exchangeRatesData,
isUserCustomExchangeRates,
exchangeRatesDataUpdateTime,
availableExchangeRates,
// functions