diff --git a/apps/web/src/app/map/page.tsx b/apps/web/src/app/map/page.tsx index 09b9166..302b3be 100644 --- a/apps/web/src/app/map/page.tsx +++ b/apps/web/src/app/map/page.tsx @@ -705,7 +705,11 @@ export default function MapPage() { ))} setShowRepatriationPicker(true)} + onClick={() => + activeRoute?.type === "repatriation" + ? setActiveRoute(null) + : setShowRepatriationPicker(true) + } className={`flex w-full items-center justify-between rounded-lg border px-3 py-2 text-xs transition ${ activeRoute?.type === "repatriation" ? "border-[#3f9e6a]/55 bg-[#3f9e6a]/16 text-[#aef0c6]" @@ -716,7 +720,9 @@ export default function MapPage() { 国宝海外回归 - {routes.filter((r) => r.type === "repatriation").length} 件 + {activeRoute?.type === "repatriation" + ? "退出" + : `${routes.filter((r) => r.type === "repatriation").length} 件`}