From 22693ea5466dbbb21c4e5c003d467f9619627018 Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.7.127> Date: 星期五, 18 一月 2019 13:39:42 +0800 Subject: [PATCH] 屏蔽登陆页面的后退按钮 --- gx_tieta/WebRoot/login.jsp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/login.jsp b/gx_tieta/WebRoot/login.jsp index 1b72337..68a7e8d 100644 --- a/gx_tieta/WebRoot/login.jsp +++ b/gx_tieta/WebRoot/login.jsp @@ -328,6 +328,13 @@ } }); } + + //鎷︽埅瀹夊崜鍥為��鎸夐挳 + history.pushState(null, null, location.href); + window.addEventListener('popstate', function(event) { + history.pushState(null, null, location.href ); + //姝ゅ鍔犲叆鍥為��鏃朵綘瑕佹墽琛岀殑浠g爜 + }); </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1