update ruoyi-ui/src/router/index.js. 路由匹配 publicPath

Signed-off-by: 美一天 <130427+xiaoran27@user.noreply.gitee.com>
pull/1009/head
美一天 2025-04-29 07:38:15 +00:00 committed by Gitee
parent baf2f6f46b
commit e2ebeff136
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

@ -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
})