fix: 卫星列表初始化逻辑
This commit is contained in:
@ -25,37 +25,39 @@ const satelliteState = reactive<HCesiumManagerSatelliteState>({
|
||||
satellites: [],
|
||||
selectedIds: new Set<string>(),
|
||||
});
|
||||
|
||||
// 初始化卫星列表
|
||||
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(() =>
|
||||
|
Reference in New Issue
Block a user