Commit 7372cf58 authored by 前端-许佳敏's avatar 前端-许佳敏

本地权限放开

parent d1a32e53
......@@ -41,11 +41,7 @@ const MenuSlider = (props) => {
formatMessage,
})
// 本地可无权限访问所有路由
if (!isDev) {
menuData
}
const dispatchRoutes = menuData.filter(v => getRouters().includes(v.path))
const dispatchRoutes = isDev ? menuData : menuData.filter(v => getRouters().includes(v.path))
return (
<Slider className={styles.lxSlider} collapsed={props.collapseState} width={240}>
<Logo />
......
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