hejianhao
2026-03-26 b1d6c5f8df82469bf28464c3980632b35b236a12
fix: 移除路线更新时的节流限制

移除基于 tripStatus 和节流时间的提前返回逻辑,确保路线绘制始终响应最新数据。
1个文件已修改
5 ■■■■■ 已修改文件
src/robotaxi/pages/begin-route/index.tsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/robotaxi/pages/begin-route/index.tsx
@@ -1250,12 +1250,7 @@
    const displayRoutePoints = isEraseMode ? routePoints : reducePoints(routePoints, isAndroid ? 120 : 200);
    const lastRoutePoint = displayRoutePoints[displayRoutePoints.length - 1];
    const lastWalkingPoint = walkingPoints[walkingPoints.length - 1];
    const isTripMoving = [4, 5, 6].includes(tripStatus);
    const now = Date.now();
    const throttle = isAndroid ? 1200 : 800;
    if (shouldShowRoute && isTripMoving && displayRoutePoints.length > 0 && now - lastPolylineUpdateAtRef.current < throttle) {
      return;
    }
    const nextKey = [
      shouldShowRoute ? 1 : 0,
      statusRule.showWalking ? 1 : 0,