You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
552 B
15 lines
552 B
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
import { Menu } from 'antd';
|
|
import { CarryOutOutlined } from '@ant-design/icons';
|
|
const SubMenu = Menu.SubMenu;
|
|
|
|
export function getNavItem (user) {
|
|
return (
|
|
user?.role == '系统管理员' && <SubMenu key="safetySpecification" icon={<CarryOutOutlined />} title='数据安全规范'>
|
|
<Menu.Item key="specificationLibrary">
|
|
<Link to="/safetySpecification/specificationLibrary">数据安全规范库</Link>
|
|
</Menu.Item>
|
|
</ SubMenu >
|
|
);
|
|
}
|