ai-coding
2026-06-10 86c95c90cd663a233a20c764b3af79360f3da507
feat(location-update-refresh): 更新地图选择位置逻辑

Co-Authored-By: '卢春龙' <lucl@xiaopeng.com>
1个文件已修改
8 ■■■■■ 已修改文件
src/robotaxi/pages/select-map-site/hooks/use-select-map-site.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/select-map-site/hooks/use-select-map-site.ts
@@ -215,11 +215,15 @@
  };
  /**
   * 返回当前位置。
   * 返回当前位置并重新吸附最近站点。
   */
  const toOrigin = () => {
    const mapCtx = Taro.createMapContext('map');
    mapCtx.moveToLocation();
    mapCtx.moveToLocation({
      success: () => {
        handleRegionChange({ type: 'end', causedBy: 'gesture' });
      }
    });
  };
  /**