fix: 修复卫星名称提取逻辑,增强类型安全性
This commit is contained in:
@ -22,7 +22,7 @@ interface SatelliteItem {
|
||||
// 初始化卫星数据
|
||||
const satellites = ref<SatelliteItem[]>(
|
||||
tleList.map((tle) => {
|
||||
const name = tle.split('\n')[0].trim();
|
||||
const name = (tle.split('\n') as [string, string, string])[0].trim();
|
||||
return {
|
||||
entity: null,
|
||||
name,
|
||||
|
Reference in New Issue
Block a user