From 06a17c236d4cb9b8da75fce43af938cb7ea510bf Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期一, 15 十二月 2025 09:50:12 +0800
Subject: [PATCH] feat: 优化企业微信判断,优化gps分断处理

---
 app/static/index.html |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/app/static/index.html b/app/static/index.html
index a7af653..0824d25 100644
--- a/app/static/index.html
+++ b/app/static/index.html
@@ -9,6 +9,25 @@
 		<script>
 			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
 			document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
+			
+			// 绂佺敤璺ㄥ煙瀛愭鏋惰嚜鍔ㄨ仛鐒�
+			document.addEventListener('DOMContentLoaded', function() {
+				// 闃绘iframe鍐呯殑鑷姩鑱氱劍
+				document.addEventListener('focusin', function(e) {
+					if (e.target.tagName === 'IFRAME' || e.target.closest('iframe')) {
+						e.preventDefault()
+						e.stopPropagation()
+					}
+				}, true)
+				
+				// 闃绘webview鍐呯殑鑷姩鑱氱劍
+				document.addEventListener('focusin', function(e) {
+					if (e.target.tagName === 'WEB-VIEW' || e.target.closest('web-view')) {
+						e.preventDefault()
+						e.stopPropagation()
+					}
+				}, true)
+			})
 		</script>
 		<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
 	</head>

--
Gitblit v1.9.1