Commit bc827ef3 authored by RuoYi's avatar RuoYi

无法匹配到的页面返回跳转至404页,防止整个页面显示空白

parent fee8a595
...@@ -93,7 +93,8 @@ export const constantRoutes = [ ...@@ -93,7 +93,8 @@ export const constantRoutes = [
meta: { title: '修改生成配置' } meta: { title: '修改生成配置' }
} }
] ]
} },
{ path: '*', redirect: '/404', hidden: true }
] ]
export default new Router({ export default new Router({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment