From ddc34182ddff00a5bc24e908aa77726b5f196210 Mon Sep 17 00:00:00 2001 From: duxingchen Date: Wed, 12 Aug 2026 14:45:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E5=88=B6=E5=93=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=94=B9=E4=B8=BA=E5=BA=94=E7=94=A8=E5=86=85=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=89=AB=E7=A0=81=E8=AF=A6=E6=83=85=E9=A1=B5(?= =?UTF-8?q?=E6=B5=81=E8=BD=AC=E6=A0=91)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/admin/AdminDashboard.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/pages/admin/AdminDashboard.tsx b/frontend/src/pages/admin/AdminDashboard.tsx index f8414f4..160f1ae 100644 --- a/frontend/src/pages/admin/AdminDashboard.tsx +++ b/frontend/src/pages/admin/AdminDashboard.tsx @@ -81,9 +81,7 @@ function WipRow({ t }: { t: WipTask }) { const nav = useNavigate(); const handleClick = () => { if (t.product_sn) { - // 跳转到扫码详情页 - const base = window.location.origin; - window.open(`${base}/scan?sn=${t.product_sn}`, "_blank"); + nav(`/scan?sn=${t.product_sn}`); } }; return (