From 73d7f7aed91cdaaaf61e6177dc02c71ef5ca51e8 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期三, 03 九月 2025 16:42:14 +0800
Subject: [PATCH] fix: 修复轨迹查询,界面报401的问题

---
 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