Commit bc827ef37731948c0643499cfa9dcb98df85c77e
1 parent
fee8a595
无法匹配到的页面返回跳转至404页,防止整个页面显示空白
Showing
1 changed file
with
2 additions
and
1 deletions
ruoyi-ui/src/router/index.js
| @@ -93,7 +93,8 @@ export const constantRoutes = [ | @@ -93,7 +93,8 @@ export const constantRoutes = [ | ||
| 93 | meta: { title: '修改生成配置' } | 93 | meta: { title: '修改生成配置' } |
| 94 | } | 94 | } |
| 95 | ] | 95 | ] |
| 96 | - } | 96 | + }, |
| 97 | + { path: '*', redirect: '/404', hidden: true } | ||
| 97 | ] | 98 | ] |
| 98 | 99 | ||
| 99 | export default new Router({ | 100 | export default new Router({ |