Move pairing cache repair into planning flow

This commit is contained in:
2026-04-15 08:06:15 +08:00
parent 608c4ce257
commit 572c454a8e
8 changed files with 412 additions and 7 deletions
+10
View File
@@ -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) {
+1 -1
View File
@@ -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'));