From 9d341bd4d43ccccda6e1ba2999373d5b73ddea46 Mon Sep 17 00:00:00 2001 From: "jiacheng.lin" Date: Fri, 17 Jul 2026 10:39:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Windows=20=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E9=93=BE=E6=8E=A5=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=20datasets=20=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E5=88=9B=E5=BB=BA=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E5=BD=93=E5=89=8D=E5=9B=BE=E5=83=8F=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A7=8B=E7=BB=88=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20items[0]=20=E4=BD=9C=E4=B8=BA=E5=BD=93=E5=89=8D=E5=9B=BE?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/entrypoint.sh | 10 ++++++++++ .../src/modules/labeling/pages/QualityReviewPage.tsx | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 339f4f5..592a24b 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,6 +2,16 @@ set -euo pipefail cd /data/hsap +# 修复 Windows 符号链接:Docker COPY 会把 symlink 复制为普通文件 +# 检测 datasets/ 下的文件(应为目录),删除并重建为空目录 +for d in datasets/lane datasets/adas; do + if [ -f "$d" ] && [ ! -L "$d" ]; then + echo "[entrypoint] 修复 Windows symlink: $d (文件 → 目录)" + rm -f "$d" + mkdir -p "$d" + fi +done + if [[ -d /data/workspace/DMS || -d /data/workspace/LaneDection ]]; then echo "[entrypoint] 检测到外部 workspace,重建软链…" bash scripts/setup_links.sh || true diff --git a/platform/web/src/modules/labeling/pages/QualityReviewPage.tsx b/platform/web/src/modules/labeling/pages/QualityReviewPage.tsx index cd16868..ebe8432 100644 --- a/platform/web/src/modules/labeling/pages/QualityReviewPage.tsx +++ b/platform/web/src/modules/labeling/pages/QualityReviewPage.tsx @@ -166,7 +166,7 @@ const ReviewDetailPage: React.FC<{ campaignId: string }> = ({ campaignId }) => { useEffect(() => { loadPage(currentIdx); }, [currentIdx, loadPage]); - const currentImage = items[currentIdx]; + const currentImage = items[0]; const currentScore = currentImage ? (localScores[currentImage.image_path] || currentImage.score || "pending") : "pending"; useEffect(() => {