mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-26 09:24:48 +08:00
fix(frontend): 修复后台页面 lint 校验问题
This commit is contained in:
@@ -562,16 +562,17 @@ const resetAutoRefreshCache = () => {
|
|||||||
const isFirstLoad = ref(true)
|
const isFirstLoad = ref(true)
|
||||||
|
|
||||||
const load = async () => {
|
const load = async () => {
|
||||||
|
const requestParams = params as any
|
||||||
hasPendingListSync.value = false
|
hasPendingListSync.value = false
|
||||||
resetAutoRefreshCache()
|
resetAutoRefreshCache()
|
||||||
pendingTodayStatsRefresh.value = false
|
pendingTodayStatsRefresh.value = false
|
||||||
if (isFirstLoad.value) {
|
if (isFirstLoad.value) {
|
||||||
;(params as any).lite = '1'
|
requestParams.lite = '1'
|
||||||
}
|
}
|
||||||
await baseLoad()
|
await baseLoad()
|
||||||
if (isFirstLoad.value) {
|
if (isFirstLoad.value) {
|
||||||
isFirstLoad.value = false
|
isFirstLoad.value = false
|
||||||
delete (params as any).lite
|
delete requestParams.lite
|
||||||
}
|
}
|
||||||
await refreshTodayStatsBatch()
|
await refreshTodayStatsBatch()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -552,10 +552,11 @@ const loadDashboardSnapshot = async (includeStats: boolean) => {
|
|||||||
appStore.showError(t('admin.dashboard.failedToLoad'))
|
appStore.showError(t('admin.dashboard.failedToLoad'))
|
||||||
console.error('Error loading dashboard snapshot:', error)
|
console.error('Error loading dashboard snapshot:', error)
|
||||||
} finally {
|
} finally {
|
||||||
if (currentSeq !== chartLoadSeq) return
|
if (currentSeq === chartLoadSeq) {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
chartsLoading.value = false
|
chartsLoading.value = false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadUsersTrend = async () => {
|
const loadUsersTrend = async () => {
|
||||||
@@ -575,9 +576,10 @@ const loadUsersTrend = async () => {
|
|||||||
console.error('Error loading users trend:', error)
|
console.error('Error loading users trend:', error)
|
||||||
userTrend.value = []
|
userTrend.value = []
|
||||||
} finally {
|
} finally {
|
||||||
if (currentSeq !== usersTrendLoadSeq) return
|
if (currentSeq === usersTrendLoadSeq) {
|
||||||
userTrendLoading.value = false
|
userTrendLoading.value = false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadDashboardStats = async () => {
|
const loadDashboardStats = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user