From 3e0818b9a726ec805c83e4b9f9c778ec78dd0c47 Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 13 Jun 2023 08:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=B6=88=E8=B4=B9=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/resourceConsumption/nav-item.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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