修改用户定位地址相关
This commit is contained in:
@@ -40,11 +40,12 @@ const defaultPageOption = {
|
||||
};
|
||||
|
||||
// 创建 store
|
||||
const now = new Date();
|
||||
export const useListStore = create<TennisStore>()((set, get) => ({
|
||||
currentPage: "",
|
||||
isSearchResult: false,
|
||||
searchResultData: [],
|
||||
// dateRange: [new Date(), new Date()], // 日期区间
|
||||
dateRange: [now, new Date(now.getTime() + 30 * 24 * 60 * 60 * 1000)], // 日期区间
|
||||
// 初始状态
|
||||
matches: [],
|
||||
// 推荐列表
|
||||
@@ -126,6 +127,7 @@ export const useListStore = create<TennisStore>()((set, get) => ({
|
||||
const state = get();
|
||||
const filterOptions = state?.filterOptions || {};
|
||||
const distanceQuickFilter = state?.distanceQuickFilter || {};
|
||||
|
||||
const params = {
|
||||
pageOption: state.pageOption,
|
||||
seachOption: {
|
||||
|
||||
Reference in New Issue
Block a user