From 42f42dc88214f283b43c422f37e10ab45c5c5578 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 12 三月 2025 17:32:13 +0800
Subject: [PATCH] 1. 新增绘图模式的切换 2. 新增行政区划的切换展示

---
 src/components/search/OptionDevice.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/components/search/OptionDevice.vue b/src/components/search/OptionDevice.vue
index a6d3c47..093e7b8 100644
--- a/src/components/search/OptionDevice.vue
+++ b/src/components/search/OptionDevice.vue
@@ -27,7 +27,7 @@
     type: String,
     modelValue: String
   },
-  emits: ['update:modelValue'],
+  emits: ['update:modelValue', 'initOver'],
   data() {
     return {};
   },
@@ -61,6 +61,7 @@
       this.deviceStore.fetchDevice().then((res) => {
         if (res.success && res.data.length > 0) {
           this.handleChange(this.deviceOptions[0].value);
+          this.$emit('initOver');
         }
       });
     },
@@ -76,6 +77,7 @@
       this.fetchDevice();
     } else {
       this.handleChange(this.deviceOptions[0].value);
+      this.$emit('initOver');
     }
   }
 };

--
Gitblit v1.9.3