卢春龙
2026-06-27 c52e2f3aadd9572ba89fd4a7fb3f09c8668c65d4
Merge branch 'fix/select-collect-no-name-show' into 'feature_v2.0'

fix(site-search): 修复收藏夹选场站name不显示的问题

See merge request robotaxi1/xp-robotaxi-miniprogram!110
1个文件已修改
8 ■■■■■ 已修改文件
src/robotaxi/pages/site-search/index.tsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/site-search/index.tsx
@@ -418,9 +418,9 @@
  /**
   * 收藏站点返回的是“收藏记录对象”,这里统一转换成下单链路使用的站点对象。
   */
  const normalizeFavoriteSelectedSite = (item: any) => {
    const resolvedPointId = item?.pointId || '';
    const resolvedName = item?.pointName || '';
    const normalizeFavoriteSelectedSite = (item: any) => {
    const resolvedPointId = item?.pointId || item?.id || '';
    const resolvedName = item?.pointName || item?.name || '';
    const shouldPreserveFavoriteId = item?.pointId && String(item?.id || '') !== String(item?.pointId || '');
    return {
      ...item,
@@ -428,7 +428,7 @@
      id: resolvedPointId,
      pointId: resolvedPointId,
      name: resolvedName,
      pointName: item?.pointName || resolvedName,
      pointName: resolvedName,
    };
  };