From 66e502727ac258b3ccb08a90f019282c7dc96f6a Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 02 Dec 2025 15:34:27 +0800
Subject: [PATCH] 登录/注册页面底部版权信息修改为读取配置
---
ruoyi-ui/src/router/index.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index 983117c..958ca4b 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -165,10 +165,16 @@
]
// 防止连续点击多次路由报错
-let routerPush = Router.prototype.push;
+let routerPush = Router.prototype.push
+let routerReplace = Router.prototype.replace
+// push
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(err => err)
}
+// replace
+Router.prototype.replace = function push(location) {
+ return routerReplace.call(this, location).catch(err => err)
+}
export default new Router({
mode: 'history', // 去掉url中的#
--
Gitblit v1.9.3