From b44e0e4de637a141181c44d5e103eb732455c26e Mon Sep 17 00:00:00 2001
From: 刘继东 <wwwliujidong@163.com>
Date: Sat, 02 Mar 2024 11:52:29 +0800
Subject: [PATCH] update ruoyi-modules/ruoyi-job/src/main/resources/mapper/job/SysJobLogMapper.xml. 任务运行日志列表增加按创建日期倒叙排序
---
ruoyi-ui/src/permission.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/permission.js b/ruoyi-ui/src/permission.js
index 8f54e99..4d3df60 100644
--- a/ruoyi-ui/src/permission.js
+++ b/ruoyi-ui/src/permission.js
@@ -18,6 +18,8 @@
if (to.path === '/login') {
next({ path: '/' })
NProgress.done()
+ } else if (whiteList.indexOf(to.path) !== -1) {
+ next()
} else {
if (store.getters.roles.length === 0) {
isRelogin.show = true
@@ -45,7 +47,7 @@
// 在免登录白名单,直接进入
next()
} else {
- next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
+ next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页
NProgress.done()
}
}
--
Gitblit v1.9.3