feat: 球局详情完善 & 球局列表默认查一个月
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { create } from "zustand";
|
||||
import dayjs from "dayjs";
|
||||
import {
|
||||
getGamesList,
|
||||
getGamesIntegrateList,
|
||||
@@ -19,9 +20,10 @@ import dateRangeUtils from '@/utils/dateRange'
|
||||
type TennisStore = ListState & ListActions;
|
||||
|
||||
const toDate = dateRangeUtils?.formatDate(new Date())
|
||||
const defaultDateRange: [string, string] = [dayjs().format('YYYY-MM-DD'), dayjs().add(1, 'M').format('YYYY-MM-DD')]
|
||||
|
||||
const defaultFilterOptions: IFilterOptions = {
|
||||
dateRange: [toDate, toDate], // 日期区间
|
||||
dateRange: defaultDateRange, // 日期区间
|
||||
timeSlot: "", // 时间段
|
||||
ntrp: [1, 5], // NTRP 水平区间
|
||||
venueType: "", // 场地类型
|
||||
|
||||
Reference in New Issue
Block a user