fix: 卫星列表初始化逻辑

This commit is contained in:
严浩
2025-04-03 16:40:51 +08:00
parent 9e8affc52d
commit d7d704d120

View File

@ -25,7 +25,8 @@ const satelliteState = reactive<HCesiumManagerSatelliteState>({
satellites: [], satellites: [],
selectedIds: new Set<string>(), selectedIds: new Set<string>(),
}); });
onMounted(async () => {
await new Promise((resolve) => setTimeout(resolve, 1000));
// 初始化卫星列表 // 初始化卫星列表
satelliteState.satellites = [ satelliteState.satellites = [
{ {
@ -53,9 +54,10 @@ satelliteState.satellites = [
2 00694 30.3579 298.5470 0554905 319.4291 36.6190 14.10324656 83424`, 2 00694 30.3579 298.5470 0554905 319.4291 36.6190 14.10324656 83424`,
showOrbit: true, showOrbit: true,
showCoverage: false, showCoverage: false,
showPath: false, showPath: true,
}, },
]; ];
});
// 计算卫星 Checkbox Group 的 options // 计算卫星 Checkbox Group 的 options
const satelliteCheckboxOptions = computed(() => const satelliteCheckboxOptions = computed(() =>