From 85efb6f0e34fea529f189f09bce082fb0809d7c8 Mon Sep 17 00:00:00 2001 From: MerCry Date: Tue, 10 Feb 2026 02:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAhash=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/router/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index f39d898..4205de1 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -177,8 +177,7 @@ Router.prototype.replace = function push(location) { } export default new Router({ - mode: 'history', // 去掉url中的# - base: process.env.NODE_ENV === 'production' ? '/' : '/', + mode: 'hash', // 使用 hash 模式,URL 会有 # scrollBehavior: () => ({ y: 0 }), routes: constantRoutes })