update the styling used when reloading browser cache data

This commit is contained in:
MaysWind
2026-03-01 19:31:26 +08:00
parent 8c1f499ed8
commit c4c9503e31
3 changed files with 24 additions and 18 deletions
@@ -70,17 +70,26 @@ export function useAppBrowserCacheSettingPageBase() {
}
});
function loadCacheStatistics(): Promise<void> {
function loadCacheStatistics(updateLoadingState: boolean): Promise<void> {
return new Promise((resolve, reject) => {
loading.value = true;
if (updateLoadingState) {
loading.value = true;
}
loadBrowserCacheStatistics().then(statistics => {
fileCacheStatistics.value = statistics;
exchangeRatesCacheSize.value = exchangeRatesStore.getExchangeRatesCacheSize();
loading.value = false;
if (updateLoadingState) {
loading.value = false;
}
resolve();
}).catch(error => {
loading.value = false;
if (updateLoadingState) {
loading.value = false;
}
reject(error);
});
});