From 22fb3fad9b5902c8e995f833ab79462aeb3cdec1 Mon Sep 17 00:00:00 2001
From: hdw <hdw@192.168.7.127>
Date: 星期五, 18 一月 2019 15:01:47 +0800
Subject: [PATCH] 更新首页无法后退
---
gx_tieta/WebRoot/mobil/index.html | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/index.html b/gx_tieta/WebRoot/mobil/index.html
index dcee04e..ce165df 100644
--- a/gx_tieta/WebRoot/mobil/index.html
+++ b/gx_tieta/WebRoot/mobil/index.html
@@ -96,6 +96,13 @@
$(document.body).css( "visibility", "visible") ;
});
+ //鎷︽埅瀹夊崜鍥為��鎸夐挳
+ history.pushState(null, null, location.href);
+ window.addEventListener('popstate', function(event) {
+ history.pushState(null, null, location.href );
+ //姝ゅ鍔犲叆鍥為��鏃朵綘瑕佹墽琛岀殑浠g爜
+ });
+
//瀹夊叏閫�鍑�
function exitUser(){
$.post("../LoginAction!exitUser",null,function(data){
@@ -122,6 +129,7 @@
}
});
}
+
//鏍规嵁鏉冮檺鍚嶅垽鏂槸鍚﹀叿鏈夋煇涓潈闄�
function isHasPermit(_permitName,_permitList)
{
--
Gitblit v1.9.1