From 131719ef04914a7cdcc5a76a02ca00680dd56ab1 Mon Sep 17 00:00:00 2001
From: fury_128 <498055813@qq.com>
Date: Fri, 18 Mar 2022 10:58:42 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E9=99=86=E8=B6=85?=
=?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=87=8D=E6=96=B0=E7=99=BB=E9=99=86=E5=90=8E?=
=?UTF-8?q?=E5=8E=9F=E8=B7=AF=E5=BE=84=E5=8F=82=E6=95=B0=E4=B8=A2=E5=A4=B1?=
=?UTF-8?q?=E8=A7=A3=E5=86=B3=EF=BC=8C=E9=97=AE=E9=A2=98=E5=9C=B0=E5=9D=80?=
=?UTF-8?q?=EF=BC=9A=20https://gitee.com/y=5Fproject/RuoYi-Vue/issues/I4XH?=
=?UTF-8?q?ZR?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/permission.js | 2 +-
ruoyi-ui/src/views/login.vue | 446 ++++++++++++++++++-----------------
2 files changed, 228 insertions(+), 220 deletions(-)
diff --git a/ruoyi-ui/src/permission.js b/ruoyi-ui/src/permission.js
index 6bb0a1f83..409e3a7d8 100644
--- a/ruoyi-ui/src/permission.js
+++ b/ruoyi-ui/src/permission.js
@@ -45,7 +45,7 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入
next()
} else {
- next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
+ next({ path: '/login' ,query:{re_path:to.path,...to.query}}) // 否则全部重定向到登录页
NProgress.done()
}
}
diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue
index 6e240dd24..0a188aee0 100644
--- a/ruoyi-ui/src/views/login.vue
+++ b/ruoyi-ui/src/views/login.vue
@@ -1,219 +1,227 @@
-
-
-
- 若依后台管理系统
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
- 记住密码
-
-
- 登 录
- 登 录 中...
-
-
- 立即注册
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 若依后台管理系统
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+ 记住密码
+
+
+ 登 录
+ 登 录 中...
+
+
+ 立即注册
+
+
+
+
+
+
+
+
+
+
+