From 4d15e6b553c448e2e07527e9c06aa4b5f9b099cf Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 11 九月 2026 16:51:18 +0800
Subject: [PATCH] update

---
 ruoyi-ui/src/router/index.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index 4462a60..a1da171 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -344,7 +344,8 @@
 }
 
 export default new Router({
-  mode: 'history', // 去掉url中的#
+  // hash 模式无需服务器为每个前端路由配置 index.html 回退,适合静态目录部署。
+  mode: 'hash',
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes
 })

--
Gitblit v1.7.1