From 801877e84eb8d26c7fee7c7827b8e2c0001fac67 Mon Sep 17 00:00:00 2001
From: Administrator <jinghz@oceic.com>
Date: 星期四, 14 十二月 2023 20:12:15 +0800
Subject: [PATCH] 屏蔽主控台后退按钮

---
 WebTM/views/indexMenu.html |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/WebTM/views/indexMenu.html b/WebTM/views/indexMenu.html
index fe8b9b5..e1309d3 100644
--- a/WebTM/views/indexMenu.html
+++ b/WebTM/views/indexMenu.html
@@ -11,7 +11,12 @@
     <link rel="stylesheet" href="../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../layuiadmin/style/admin.css" media="all">
     <script src="../layuiadmin/Scripts/jquery-3.5.1.min.js"></script>
-
+    <script language="JavaScript">//灞忚斀鍚庨��鎸夐挳
+        history.pushState(null, null, document.URL);
+        window.addEventListener('popstate', function () {
+            history.pushState(null, null, document.URL);
+        });
+    </script>
     <script>
         /^http(s*):\/\//.test(location.href) || alert('璇峰厛閮ㄧ讲鍒� localhost 涓嬪啀璁块棶');
     </script>

--
Gitblit v1.9.1