列表接口

This commit is contained in:
juguohong
2025-08-30 13:40:25 +08:00
parent f0b02e832f
commit 1cb303b86d
4 changed files with 22 additions and 23 deletions

View File

@@ -81,11 +81,13 @@ export const useListStore = create<TennisStore>()((set, get) => ({
set({ loading: true, error: null })
try {
const matches = await getTennisMatches(params)
const resData = await getTennisMatches(params) || {};
const { data = {}, code } = resData;
const { count, rows } = data;
set({
matches,
matches: rows || [],
loading: false,
lastRefreshTime: new Date().toISOString()
// lastRefreshTime: new Date().toISOString()
})
} catch (error) {