From e12886ae7109455e6c0991af5c6f73d360322891 Mon Sep 17 00:00:00 2001
From: zhulongchuan <1624729110@qq.com>
Date: Thu, 9 Oct 2025 17:46:01 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E6=A0=BC?=
=?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
auto-imports.d.ts | 1 -
src/views/cesium/index.vue | 33 +++++--
src/views/system/metasploitable/index.vue | 113 ++++++++--------------
src/views/system/pilot/index.vue | 51 ++++++----
4 files changed, 102 insertions(+), 96 deletions(-)
diff --git a/auto-imports.d.ts b/auto-imports.d.ts
index f06c23a..ba90363 100644
--- a/auto-imports.d.ts
+++ b/auto-imports.d.ts
@@ -2,7 +2,6 @@
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
- const ElMessage: typeof import('element-plus/es')['ElMessage']
const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef']
diff --git a/src/views/cesium/index.vue b/src/views/cesium/index.vue
index ef9bcab..aafa079 100644
--- a/src/views/cesium/index.vue
+++ b/src/views/cesium/index.vue
@@ -9,10 +9,16 @@ import {ArcGisMapServerImageryProvider, Camera, Viewer, Rectangle} from 'cesium'
const containerRef = ref();
const unvisibleCreditRef = ref();
Camera.DEFAULT_VIEW_RECTANGLE = Rectangle.fromDegrees(
- 75.0, // 东
- 0.0, // 南
- 140.0, // 西
- 60.0 // 北
+ // 75.0, // 东
+ // 0.0, // 南
+ // 140.0, // 西
+ // 60.0 // 北
+ // 106.5, // 西经(West)
+ // 28.5, // 南纬(South)
+ // 108.5, // 东经(East)
+ // 31.5 // 北纬(North)
+ 106.52,29.53, // 西南角(经度,维度)
+ 106.60,29.59 // 东北角
)
onMounted(() => {
const viewer = new Viewer(containerRef.value, {
@@ -43,6 +49,21 @@ onMounted(() => {
}
}
)
+
+ // const addLabel= new Viewer(containerRef.value, {
+ // labelLayer :new Cesium.WebMapTileServiceImageryProvider({
+ // url: "http://t0.tianditu.com/cia_w/wmts?service=wmts&tk=e3af6e89f787c2469373e3aea76f4d36&request=GetTile&version=1.0.0&LAYER=cia&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default.jpg",
+ // layer: "tdtImgAnnoLayer",
+ // style: "default",
+ // format: "image/jpeg",
+ // tileMatrixSetID: "GoogleMapsCompatible",
+ // })
+
+ // })
+ viewer.camera.setView({
+ destination: Camera.DEFAULT_VIEW_RECTANGLE
+ })
+ viewer.camera.moveBackward(100)
const rawViewer = markRaw(viewer)
console.log(rawViewer)
})
@@ -50,7 +71,7 @@ onMounted(() => {
diff --git a/src/views/system/metasploitable/index.vue b/src/views/system/metasploitable/index.vue
index e823e1a..15b19dd 100644
--- a/src/views/system/metasploitable/index.vue
+++ b/src/views/system/metasploitable/index.vue
@@ -85,15 +85,7 @@