diff --git a/web/client/src/sections/resourceConsumption/nav-item.js b/web/client/src/sections/resourceConsumption/nav-item.js index 0092f1f..7a5df5c 100644 --- a/web/client/src/sections/resourceConsumption/nav-item.js +++ b/web/client/src/sections/resourceConsumption/nav-item.js @@ -4,15 +4,15 @@ import { Menu } from 'antd'; import { CarryOutOutlined } from '@ant-design/icons'; const SubMenu = Menu.SubMenu; -export function getNavItem() { - return ( - } title='资源消费'> - - 数据消费审批 - - - 我的数据消费申请 - - - ); +export function getNavItem (user) { + return ( + } title='资源消费'> + {user?.role == '系统管理员' && + 数据消费审批 + } + {user?.role == '数据消费者' && + 我的申请 + } + + ); } \ No newline at end of file