fix(frontend): 修复后台页面 lint 校验问题
This commit is contained in:
@@ -552,9 +552,10 @@ const loadDashboardSnapshot = async (includeStats: boolean) => {
|
||||
appStore.showError(t('admin.dashboard.failedToLoad'))
|
||||
console.error('Error loading dashboard snapshot:', error)
|
||||
} finally {
|
||||
if (currentSeq !== chartLoadSeq) return
|
||||
loading.value = false
|
||||
chartsLoading.value = false
|
||||
if (currentSeq === chartLoadSeq) {
|
||||
loading.value = false
|
||||
chartsLoading.value = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -575,8 +576,9 @@ const loadUsersTrend = async () => {
|
||||
console.error('Error loading users trend:', error)
|
||||
userTrend.value = []
|
||||
} finally {
|
||||
if (currentSeq !== usersTrendLoadSeq) return
|
||||
userTrendLoading.value = false
|
||||
if (currentSeq === usersTrendLoadSeq) {
|
||||
userTrendLoading.value = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user