Move pairing cache repair into planning flow
This commit is contained in:
@@ -101,6 +101,16 @@ function PairingModal({
|
||||
}
|
||||
}, [showPairingModal]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!showPairingModal || availableSatellites.length === 0) {
|
||||
return;
|
||||
}
|
||||
setSelectedSatellites((prev) => {
|
||||
const normalized = prev.filter((satellite) => availableSatellites.includes(satellite));
|
||||
return normalized.length === prev.length ? prev : normalized;
|
||||
});
|
||||
}, [availableSatellites, showPairingModal]);
|
||||
|
||||
// 同步 selectedSatellites 到 pairingParams
|
||||
useEffect(() => {
|
||||
if (selectedSatellites.length > 0) {
|
||||
|
||||
@@ -25,7 +25,7 @@ const LazyUserAdminPanel = lazy(() => import('../../UserAdminPanel'));
|
||||
const LazyAuditLogPanel = lazy(() => import('../../AuditLogPanel'));
|
||||
const LazyAiQualityPanel = lazy(() => import('../../panels/AiQualityPanel'));
|
||||
const LazyAiAnalysisPanel = lazy(() => import('../../AiAnalysisPanel'));
|
||||
const LazyPairingPanel = lazy(() => import('../../panels/PairingPanel'));
|
||||
const LazyPairingPanel = lazy(() => import('../../panels/PairPlanningPanel'));
|
||||
const LazyDinsarResultPanel = lazy(() => import('../../panels/DinsarResultPanel'));
|
||||
const LazyBatchPanel = lazy(() => import('../../panels/BatchPanel'));
|
||||
const LazyPairsListPanel = lazy(() => import('../../panels/PairsListPanel'));
|
||||
|
||||
Reference in New Issue
Block a user