don't show exchange rates data provider when use user custom exchange rates data

This commit is contained in:
MaysWind
2025-05-28 22:22:03 +08:00
parent a20ef34280
commit cde26b76b1
3 changed files with 28 additions and 5 deletions
+5
View File
@@ -27,12 +27,16 @@ export function useAboutPageBase() {
return formatUnixTimeToLongDateTime(parseInt(time));
});
const exchangeRatesData = computed<LatestExchangeRateResponse | undefined>(() => exchangeRatesStore.latestExchangeRates.data);
const isUserCustomExchangeRates = computed<boolean>(() => exchangeRatesStore.isUserCustomExchangeRates);
const mapProviderName = computed<string>(() => {
const provider = getMapProvider();
return provider ? tt(`mapprovider.${provider}`) : '';
});
const mapProviderWebsite = computed<string>(() => getMapWebsite());
const licenseLines = computed<string[]>(() => getLicense().replaceAll(/\r/g, '').split('\n'));
const thirdPartyLicenses = computed<LicenseInfo[]>(() => getThirdPartyLicenses());
@@ -42,6 +46,7 @@ export function useAboutPageBase() {
// computed states
buildTime,
exchangeRatesData,
isUserCustomExchangeRates,
mapProviderName,
mapProviderWebsite,
licenseLines,