fix: 卫星列表初始化逻辑
This commit is contained in:
@ -25,37 +25,39 @@ 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 = [
|
||||||
id: 'STARLINK-11371',
|
{
|
||||||
tle: `示例-仅卫星
|
id: 'STARLINK-11371',
|
||||||
|
tle: `示例-仅卫星
|
||||||
1 62879U 25024A 25062.93300820 .00003305 00000+0 21841-4 0 9995
|
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`,
|
2 62879 42.9977 257.3937 0001725 269.2925 90.7748 15.77864921 5143`,
|
||||||
showOrbit: false,
|
showOrbit: false,
|
||||||
showCoverage: false,
|
showCoverage: false,
|
||||||
showPath: false,
|
showPath: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'ISS (ZARYA)',
|
id: 'ISS (ZARYA)',
|
||||||
tle: `显示-path
|
tle: `显示-path
|
||||||
1 25544U 98067A 25091.51178241 .00016717 00000+0 30771-3 0 9997
|
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`,
|
2 25544 51.6416 247.4627 0006703 130.5360 325.0288 15.72125391587775`,
|
||||||
showOrbit: false,
|
showOrbit: false,
|
||||||
showCoverage: true,
|
showCoverage: true,
|
||||||
showPath: true,
|
showPath: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'AATLAS CENTAUR 2',
|
id: 'AATLAS CENTAUR 2',
|
||||||
tle: `显示-轨道
|
tle: `显示-轨道
|
||||||
1 00694U 63047A 25092.72647061 .00002208 00000+0 26071-3 0 9990
|
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`,
|
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(() =>
|
||||||
|
Reference in New Issue
Block a user