From c32943e82a8eb6a04491f44bb41d60793d2fdc01 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Thu, 4 Dec 2025 17:31:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 5 ----- src/hooks/useLocation.ts | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/api/user.ts b/src/api/user.ts index b0759ab..1f27774 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -144,8 +144,3 @@ export interface IUpdateUserInfoParams { export function updateUserInfo(data: IUpdateUserInfoParams) { return http.Post('/api/user/setInfo', data) } - -/** - * 上传头像 - */ - diff --git a/src/hooks/useLocation.ts b/src/hooks/useLocation.ts index ac38afd..fdcef75 100644 --- a/src/hooks/useLocation.ts +++ b/src/hooks/useLocation.ts @@ -1,7 +1,7 @@ import { getLocationToCity } from '@/api/tea-room' -const LOCATION_EXPIRE_MS = 2 * 60 * 1000 // 定位缓存30天 -const LOCATION_DENY_INTERVAL = 1 * 60 * 1000 // 未授权定位,弹窗间隔1小时 +const LOCATION_EXPIRE_MS = 30 * 24 * 60 * 60 * 1000 // 定位缓存30天 +const LOCATION_DENY_INTERVAL = 60 * 60 * 1000 // 未授权定位,弹窗间隔1小时 export const LOCATION_EXPIRE_KEY = 'location_expire_time' // 定位缓存KEY export const LOCATION_DEFAULT_CITY = '上海市' // 默认城市