perf(report): avoid duplicate initial stats sync in dashboard loop

This commit is contained in:
2026-02-07 18:39:11 +08:00
parent 4874aa37f6
commit ed0b74eae3
20 changed files with 53 additions and 53 deletions

View File

@@ -551,7 +551,7 @@ const mobileModules = computed(() => [
])
const REPORT_SYNC_STATS_EVERY = 3
let reportRefreshTick = 0
let reportRefreshTick = 1
async function refreshAll(options = {}) {
const showLoading = options.showLoading ?? true
@@ -647,7 +647,7 @@ function onVisibilityChange() {
}
onMounted(() => {
refreshAll({ showLoading: false, forceStatsSync: true })
refreshAll({ showLoading: false })
.catch(() => {})
.finally(() => {
scheduleRefreshLoop()