From e2ebeff1368017b663611246db679ca3e711f31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BE=8E=E4=B8=80=E5=A4=A9?= <130427+xiaoran27@user.noreply.gitee.com> Date: Tue, 29 Apr 2025 07:38:15 +0000 Subject: [PATCH] =?UTF-8?q?update=20ruoyi-ui/src/router/index.js.=20=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=8C=B9=E9=85=8D=20publicPath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 美一天 <130427+xiaoran27@user.noreply.gitee.com> --- ruoyi-ui/src/router/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index bbfd2374d..9871eaa49 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -179,5 +179,6 @@ Router.prototype.replace = function push(location) { export default new Router({ mode: 'history', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), + base: process.env.BASE_URL, // 自动匹配 publicPath routes: constantRoutes })