BJ_ZTEITS-Developers
/
parking-cloud-yudao
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
bc827ef37731948c0643499cfa9dcb98df85c77e
Authored by
RuoYi
2019-12-02 16:03:18 +0800
1 parent
fee8a595
无法匹配到的页面返回跳转至404页,防止整个页面显示空白
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
ruoyi-ui/src/router/index.js
ruoyi-ui/src/router/index.js
View file @
bc827ef
...
...
@@ -93,7 +93,8 @@ export const constantRoutes = [
93
93
meta: { title: '修改生成配置' }
94
94
}
95
95
]
96
- }
96
+ },
97
+ { path: '*', redirect: '/404', hidden: true }
97
98
]
98
99
99
100
export default new Router({
...
...