feat: add log

This commit is contained in:
eleanor.mao
2025-04-19 22:33:22 +08:00
parent f86b4481d8
commit 744928fab7
2 changed files with 19 additions and 15 deletions

View File

@ -12,8 +12,8 @@ import { EmployType, EMPLOY_TYPE_TITLE_MAP, FULL_PRICE_OPTIONS, PART_PRICE_OPTIO
import { SalaryRange } from '@/types/job';
import { MaterialProfile } from '@/types/material';
import { logWithPrefix } from '@/utils/common';
import { getCurrentCity } from '@/utils/location';
import { isFullTimePriceRequired, isPartTimePriceRequired } from '@/utils/job'
import { getCurrentCity } from '@/utils/location';
import { navigateTo } from '@/utils/route';
import './index.less';
@ -24,7 +24,8 @@ interface IProps {
const PREFIX = 'fragment-profile-intention';
const log = logWithPrefix(PREFIX);
const realtimeLogger = Taro.getRealtimeLogManager();
realtimeLogger.tag(PREFIX);
const calcInitCityCodes = (codeString: string = '') => {
const codes = codeString.split('、');
return codes.filter(code => !!CITY_CODE_TO_NAME_MAP.get(code));
@ -82,6 +83,7 @@ function ProfileIntentionFragment(props: IProps, ref) {
const handleSelectCity = useCallback(
data => {
log('handleSelectCity', data);
realtimeLogger.info('handleSelectCity', data);
const { openSource, cityCode: code } = data;
if (openSource !== OpenSource.AddIndentCity) {
return;