无法匹配到的页面返回跳转至404页,防止整个页面显示空白
This commit is contained in:
parent
fee8a5955b
commit
bc827ef377
@ -93,7 +93,8 @@ export const constantRoutes = [
|
|||||||
meta: { title: '修改生成配置' }
|
meta: { title: '修改生成配置' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
{ path: '*', redirect: '/404', hidden: true }
|
||||||
]
|
]
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
|
Loading…
Reference in New Issue
Block a user