修复地图点击城市后跳转到决策卡而非右侧简报的问题
This commit is contained in:
@@ -275,14 +275,10 @@ function ScanTerminalScreen() {
|
||||
store.preloadCityFromRow(matchedRow);
|
||||
setSelectedRowId(matchedRow.id);
|
||||
} 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(() => {});
|
||||
setSelectedRowId(null);
|
||||
}
|
||||
addAiPinnedCity(cityName);
|
||||
setActiveView("analysis");
|
||||
}, [addAiPinnedCity, store, timeSortedRows]);
|
||||
}, [store, timeSortedRows]);
|
||||
|
||||
useEffect(() => {
|
||||
if (activeView !== "map") return;
|
||||
|
||||
Reference in New Issue
Block a user