From 4905d61a1aa84dd81201a2f68cb3b76fd53a5f3f Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Wed, 2 Oct 2024 18:01:20 +0800 Subject: [PATCH] Some adjustment on map --- src/static/app/src/components/map/map.vue | 11 +++-- src/static/app/src/views/ping.vue | 54 +++++++++++++---------- src/static/app/src/views/traceroute.vue | 46 ++++++++++++++++--- src/static/css/dashboard.css | 21 +++++++++ 4 files changed, 98 insertions(+), 34 deletions(-) diff --git a/src/static/app/src/components/map/map.vue b/src/static/app/src/components/map/map.vue index de5bc57..025d325 100644 --- a/src/static/app/src/components/map/map.vue +++ b/src/static/app/src/components/map/map.vue @@ -68,7 +68,6 @@ export default { const marker = new Feature({ geometry: new Point(coordinate) }); - // Add marker to the vector source vectorSource.addFeature(marker); } const lineString = new LineString(coordinates); @@ -90,8 +89,8 @@ export default { } else if (feature.getGeometry().getType() === 'LineString') { return new Style({ stroke: new Stroke({ - color: '#0d6efd', // Line color - width: 2 // Line width + color: '#0d6efd', + width: 2 }) }); } @@ -103,11 +102,15 @@ export default { \ No newline at end of file diff --git a/src/static/app/src/views/ping.vue b/src/static/app/src/views/ping.vue index 8511ca6..1c48a7b 100644 --- a/src/static/app/src/views/ping.vue +++ b/src/static/app/src/views/ping.vue @@ -46,7 +46,9 @@ export default { }else{ this.store.newMessage("Server", res.message, "danger") } + this.pinging = false }) + } {} } }, @@ -73,7 +75,7 @@ export default { -