修复地图点击城市后跳转到决策卡而非右侧简报的问题
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user