diff --git a/ruoyi-ui/src/views/board/GPS/index.vue b/ruoyi-ui/src/views/board/GPS/index.vue
index ae87eab..fd79ef6 100644
--- a/ruoyi-ui/src/views/board/GPS/index.vue
+++ b/ruoyi-ui/src/views/board/GPS/index.vue
@@ -55,8 +55,8 @@
监控单元数量
设备数量
在线设备数量
- {{ num1 }}
- {{ num2 }}
+ {{ num2 }}
+ {{ num1 }}
{{ num3 }}
@@ -140,6 +140,7 @@ export default {
},
methods: {
async getData() {
+ if(this.$store.getters.sceneId === null) return
await this.createMap()
await this.getAlarmStats()
await this.getAubDevice()
@@ -227,6 +228,7 @@ export default {
map.setFitView()
},
async getAlarmStats() {
+ if(this.$store.getters.sceneId === null) return
const {data} = await alarmStats(this.$store.getters.sceneId)
let option1 = {
...this.chart1Option,