新页面

This commit is contained in:
eleanor.mao
2025-05-20 00:50:07 +08:00
parent f60a753e5a
commit fc37a612cc
15 changed files with 593 additions and 671 deletions

View File

@ -33,9 +33,12 @@ export const calcDistance = (distance: number, fractionDigits = 2) => {
}
return '999km';
};
export const getCurrentCityCode = () => {
return selectLocation(store.getState()).cityCode;
};
export const getCurrentCity = () => {
const cityCode = selectLocation(store.getState()).cityCode;
const cityCode = getCurrentCityCode();
return CITY_CODE_TO_NAME_MAP.get(cityCode) || '';
};