From b624648115ebcdaa0f7faf613bc989e0db19f2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 25 Mar 2022 15:21:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B7=AF=E5=BE=84=E8=B7=AF=E7=94=B1=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 f99408f9c..dd4d5f14a 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -171,6 +171,7 @@ Router.prototype.push = function push(location) { } export default new Router({ + base: process.env.VUE_APP_CONTEXT_PATH, mode: 'history', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), routes: constantRoutes