From d4b2a08312952009ea1786db7dafc96f6c1e33a3 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期四, 05 十一月 2026 17:39:34 +0800
Subject: [PATCH] fix(map): 换用百度地图 v2.0(普通瓦片),并修掉 BMAP_PROTOCOL 写死 https 的致命 bug

---
 src/components/map/src/utils.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/components/map/src/utils.ts b/src/components/map/src/utils.ts
index 0427fd7..5af755a 100644
--- a/src/components/map/src/utils.ts
+++ b/src/components/map/src/utils.ts
@@ -84,7 +84,7 @@
   }
 
   // 鐧惧害瀹樻柟瑕佹眰锛氬厛澹版槑鍗忚锛岄伩鍏� HTTPS 椤甸潰涓� SDK 鎷煎嚭 http 瀛愯祫婧愬湴鍧�
-  window.BMAP_PROTOCOL = 'https';
+  window.BMAP_PROTOCOL = window.location.protocol.replace(':', '');
   window.BMapGL_loadScriptTime = Date.now();
 
   const query = `type=webgl&v=1.0&ak=${accessKey}&services=&t=${Date.now()}`;

--
Gitblit v1.9.3