From c622702a7b9357a45df08361dfab4dcc690fc95c Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期一, 29 九月 2025 08:43:50 +0800
Subject: [PATCH] fix:优化index.vue支持 selected

---
 ruoyi-ui/src/views/system/gps/map.vue |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ruoyi-ui/src/views/system/gps/map.vue b/ruoyi-ui/src/views/system/gps/map.vue
index 08bcec3..6d0035e 100644
--- a/ruoyi-ui/src/views/system/gps/map.vue
+++ b/ruoyi-ui/src/views/system/gps/map.vue
@@ -302,6 +302,14 @@
         if(window.initMapFlag){
           this.drawTrack();
         }
+      }).catch(error => {
+        this.loading = false;
+        // 鏄剧ず鍙嬪ソ鐨勯敊璇彁绀�
+        if (error.message && error.message.includes("鏈壘鍒拌杞﹁締瀵瑰簲鐨凣PS璁惧")) {
+          this.$message.warning("璇ヨ溅杈嗘殏鏃燝PS璁惧淇℃伅");
+        } else {
+          this.$message.error(error.message || "鏌ヨGPS杞ㄨ抗澶辫触");
+        }
       });
     },
     /** 鍧愭爣杞崲鏂规硶 */

--
Gitblit v1.9.1