From 408475e3f52004b2c11d5333d58eb4060ea45a48 Mon Sep 17 00:00:00 2001
From: Sxile <3440626@qq.com>
Date: Fri, 22 Nov 2019 17:51:37 +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 | 7 ++++
.../src/main/resources/templates/index.html | 35 ++++++++++++++-----
.../ruoyi/framework/config/ShiroConfig.java | 2 +-
.../SpringSessionValidationScheduler.java | 2 ++
4 files changed, 36 insertions(+), 10 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js
index 7dc6190..d2d606f 100644
--- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js
@@ -484,6 +484,13 @@ $(function() {
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 62be341..0442af8 100644
--- a/ruoyi-admin/src/main/resources/templates/index.html
+++ b/ruoyi-admin/src/main/resources/templates/index.html
@@ -248,7 +248,15 @@