fix: 修复账号管理页面容量列显示为0的bug

This commit is contained in:
shaw
2026-03-05 09:48:00 +08:00
parent 5b10af85b4
commit 078fefed03
2 changed files with 75 additions and 66 deletions

View File

@@ -546,18 +546,27 @@ const {
handlePageSizeChange: baseHandlePageSizeChange
} = useTableLoader<Account, any>({
fetchFn: adminAPI.accounts.list,
initialParams: { platform: '', type: '', status: '', group: '', search: '', lite: '1' }
initialParams: { platform: '', type: '', status: '', group: '', search: '' }
})
const resetAutoRefreshCache = () => {
autoRefreshETag.value = null
}
const isFirstLoad = ref(true)
const load = async () => {
hasPendingListSync.value = false
resetAutoRefreshCache()
pendingTodayStatsRefresh.value = false
if (isFirstLoad.value) {
;(params as any).lite = '1'
}
await baseLoad()
if (isFirstLoad.value) {
isFirstLoad.value = false
delete (params as any).lite
}
await refreshTodayStatsBatch()
}
@@ -689,7 +698,7 @@ const refreshAccountsIncrementally = async () => {
type?: string
status?: string
search?: string
lite?: string
},
{ etag: autoRefreshETag.value }
)