修复地图点击城市后跳转到决策卡而非右侧简报的问题

This commit is contained in:
2569718930@qq.com
2026-05-18 19:13:21 +08:00
parent 426bd7deab
commit ff420c4bec
@@ -275,14 +275,10 @@ function ScanTerminalScreen() {
store.preloadCityFromRow(matchedRow); store.preloadCityFromRow(matchedRow);
setSelectedRowId(matchedRow.id); setSelectedRowId(matchedRow.id);
} else { } else {
// City not in scan rows — still preload its detail so the decision
// card can render immediately instead of showing a loading spinner.
void store.ensureCityDetail(cityName, false, "panel").catch(() => {}); void store.ensureCityDetail(cityName, false, "panel").catch(() => {});
setSelectedRowId(null); setSelectedRowId(null);
} }
addAiPinnedCity(cityName); }, [store, timeSortedRows]);
setActiveView("analysis");
}, [addAiPinnedCity, store, timeSortedRows]);
useEffect(() => { useEffect(() => {
if (activeView !== "map") return; if (activeView !== "map") return;