From 6d4e5e8c3ae6c26e4f12e7491743973e9754a00c Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 21 Nov 2019 09:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81mode=E9=85=8D=E7=BD=AEhistory?= =?UTF-8?q?=EF=BC=88=E8=A1=A8=E7=A4=BA=E5=8E=BB=E6=8E=89=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=A0=8F=E7=9A=84#=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ruoyi/index.js | 10 +++-- .../src/main/resources/templates/index.html | 39 +++++++++++++------ .../ruoyi/framework/config/ShiroConfig.java | 2 +- .../SpringSessionValidationScheduler.java | 2 + 4 files changed, 38 insertions(+), 15 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js index a939fe31..2e130d37 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js @@ -482,9 +482,13 @@ $(function() { // 设置锚点 function setIframeUrl(href) { - var nowUrl = window.location.href; - var newUrl = nowUrl.substring(0, nowUrl.indexOf("#")); - window.location.href = newUrl + "#" + href; + if($.common.equals("history", mode)) { + storage.set('publicPath', href); + } else { + var nowUrl = window.location.href; + var newUrl = nowUrl.substring(0, nowUrl.indexOf("#")); + window.location.href = newUrl + "#" + href; + } } $(window).keydown(function(event) { diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index 778ba9f4..fc3694d5 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -175,7 +175,7 @@