完善功能
This commit is contained in:
@ -144,8 +144,3 @@ export interface IUpdateUserInfoParams {
|
|||||||
export function updateUserInfo(data: IUpdateUserInfoParams) {
|
export function updateUserInfo(data: IUpdateUserInfoParams) {
|
||||||
return http.Post('/api/user/setInfo', data)
|
return http.Post('/api/user/setInfo', data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 上传头像
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { getLocationToCity } from '@/api/tea-room'
|
import { getLocationToCity } from '@/api/tea-room'
|
||||||
|
|
||||||
const LOCATION_EXPIRE_MS = 2 * 60 * 1000 // 定位缓存30天
|
const LOCATION_EXPIRE_MS = 30 * 24 * 60 * 60 * 1000 // 定位缓存30天
|
||||||
const LOCATION_DENY_INTERVAL = 1 * 60 * 1000 // 未授权定位,弹窗间隔1小时
|
const LOCATION_DENY_INTERVAL = 60 * 60 * 1000 // 未授权定位,弹窗间隔1小时
|
||||||
|
|
||||||
export const LOCATION_EXPIRE_KEY = 'location_expire_time' // 定位缓存KEY
|
export const LOCATION_EXPIRE_KEY = 'location_expire_time' // 定位缓存KEY
|
||||||
export const LOCATION_DEFAULT_CITY = '上海市' // 默认城市
|
export const LOCATION_DEFAULT_CITY = '上海市' // 默认城市
|
||||||
|
|||||||
Reference in New Issue
Block a user