diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 47ddd61d7..a31504908 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -93,7 +93,8 @@ export const constantRoutes = [ meta: { title: '修改生成配置' } } ] - } + }, + { path: '*', redirect: '/404', hidden: true } ] export default new Router({