fix(SatelliteTrack.vue): 修复选择状态一致性问题

This commit is contained in:
jiang teng 2024-09-29 16:10:05 +08:00
parent b1d5cdbb77
commit 7f7adb6c82
4 changed files with 7 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<link rel="icon" href="/satellite-track/favicon.ico"> <link rel="icon" href="/satellite-track/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>satellite-track</title> <title>satellite-track</title>
<script type="module" crossorigin src="/satellite-track/assets/index-6f382a78.js"></script> <script type="module" crossorigin src="/satellite-track/assets/index-07f46f3f.js"></script>
<link rel="stylesheet" href="/satellite-track/assets/index-71dd84b6.css"> <link rel="stylesheet" href="/satellite-track/assets/index-71dd84b6.css">
</head> </head>

View File

@ -27,6 +27,7 @@ import { getTleDataFromExternal } from '@/http/index'
import SatelliteEntity from '@/js/SatelliteEntity'; import SatelliteEntity from '@/js/SatelliteEntity';
import { specialSatellite, weatherSatellite, communicationSatellite, navigationSatellite, scientificSatellite, miscellaneousSatellite } from "./satelliteType" import { specialSatellite, weatherSatellite, communicationSatellite, navigationSatellite, scientificSatellite, miscellaneousSatellite } from "./satelliteType"
import { compareArrays } from '@/utils'; import { compareArrays } from '@/utils';
import gaodeImage from "@/assets/gaode.jpg"
const allSatellite = [...specialSatellite, ...weatherSatellite, ...communicationSatellite, ...navigationSatellite, ...scientificSatellite, ...miscellaneousSatellite]; const allSatellite = [...specialSatellite, ...weatherSatellite, ...communicationSatellite, ...navigationSatellite, ...scientificSatellite, ...miscellaneousSatellite];
@ -40,7 +41,7 @@ const satelliteMap = new Map();
// //
const drawer = ref(false); const drawer = ref(false);
// //
const checked = ref(["last-30-days"]); const checked = ref([]);
// TLE // TLE
const tleCache = new Map(); const tleCache = new Map();
@ -73,7 +74,7 @@ function initCesium() {
const customLayerViewModel = new Cesium.ProviderViewModel({ const customLayerViewModel = new Cesium.ProviderViewModel({
name: '高德地图', name: '高德地图',
iconUrl: '/src/assets/gaode.jpg', iconUrl: gaodeImage,
tooltip: '高德地图', tooltip: '高德地图',
category: 'Cesium ion', // 'Other Cesium ion''Bing Maps' category: 'Cesium ion', // 'Other Cesium ion''Bing Maps'
creationFunction: function () { creationFunction: function () {