From d394592a6bc4b4648689e439fe959c8a838df99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 11 Feb 2025 18:58:13 +0800 Subject: [PATCH] fix(SAT): update ISS data source assignment and correct CESIUM_BASE_URL to HTTPS --- src/pages/SAT/fns/demo.ts | 3 ++- src/pages/SAT/index.page.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/SAT/fns/demo.ts b/src/pages/SAT/fns/demo.ts index 80618ef..dda5f20 100644 --- a/src/pages/SAT/fns/demo.ts +++ b/src/pages/SAT/fns/demo.ts @@ -118,7 +118,8 @@ export async function demoOrbitGeneration(viewer: Viewer) { }); const issDataSource = new SpaceCatalogDataSource({ name: 'issSource' }); - issDataSource.entities.add(ISS); + Object.assign(window, { issDataSource }); + issDataSource.entities.add(ISS); // FIXME: add后有问题。 await viewer.dataSources.add(issDataSource); // await new Promise((_r) => setTimeout(_r, 1000)); diff --git a/src/pages/SAT/index.page.vue b/src/pages/SAT/index.page.vue index e7f2c5a..93a912f 100644 --- a/src/pages/SAT/index.page.vue +++ b/src/pages/SAT/index.page.vue @@ -4,7 +4,7 @@ import CesiumViewer from './CesiumViewer.vue'; const $datatableShow = ref(false); // @ts-expect-error https://digitalarsenal.io/Widgets/InfoBox/InfoBoxDescription.css -globalThis.CESIUM_BASE_URL = 'http://digitalarsenal.io/'; +globalThis.CESIUM_BASE_URL = 'https://digitalarsenal.io/';