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

---
 WebTM/WebTM.csproj.user    |    2 +-
 WebTM/views/indexMenu.html |    7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index 06468a2..bda6c04 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -1,7 +1,7 @@
 锘�<?xml version="1.0" encoding="utf-8"?>
 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
-    <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile>
+    <NameOfLastUsedPublishProfile>F:\GIT浠撳簱\ZYMESWEBUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
     <ProjectView>ProjectFiles</ProjectView>
     <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
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