diff --git a/src/pages/cesium-viewer.page.vue b/src/pages/cesium-viewer.page.vue index 939b8a4..b3165c1 100644 --- a/src/pages/cesium-viewer.page.vue +++ b/src/pages/cesium-viewer.page.vue @@ -25,37 +25,39 @@ const satelliteState = reactive({ satellites: [], selectedIds: new Set(), }); - -// 初始化卫星列表 -satelliteState.satellites = [ - { - id: 'STARLINK-11371', - tle: `示例-仅卫星 +onMounted(async () => { + await new Promise((resolve) => setTimeout(resolve, 1000)); + // 初始化卫星列表 + satelliteState.satellites = [ + { + id: 'STARLINK-11371', + tle: `示例-仅卫星 1 62879U 25024A 25062.93300820 .00003305 00000+0 21841-4 0 9995 2 62879 42.9977 257.3937 0001725 269.2925 90.7748 15.77864921 5143`, - showOrbit: false, - showCoverage: false, - showPath: false, - }, - { - id: 'ISS (ZARYA)', - tle: `显示-path + showOrbit: false, + showCoverage: false, + showPath: false, + }, + { + id: 'ISS (ZARYA)', + tle: `显示-path 1 25544U 98067A 25091.51178241 .00016717 00000+0 30771-3 0 9997 2 25544 51.6416 247.4627 0006703 130.5360 325.0288 15.72125391587775`, - showOrbit: false, - showCoverage: true, - showPath: true, - }, - { - id: 'AATLAS CENTAUR 2', - tle: `显示-轨道 + showOrbit: false, + showCoverage: true, + showPath: true, + }, + { + id: 'AATLAS CENTAUR 2', + tle: `显示-轨道 1 00694U 63047A 25092.72647061 .00002208 00000+0 26071-3 0 9990 2 00694 30.3579 298.5470 0554905 319.4291 36.6190 14.10324656 83424`, - showOrbit: true, - showCoverage: false, - showPath: false, - }, -]; + showOrbit: true, + showCoverage: false, + showPath: true, + }, + ]; +}); // 计算卫星 Checkbox Group 的 options const satelliteCheckboxOptions = computed(() =>