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.
18 lines
501 B
18 lines
501 B
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
import { Menu } from 'antd';
|
|
import { BarChartOutlined } from '@ant-design/icons';
|
|
import { push } from 'react-router-redux';
|
|
|
|
|
|
export function getNavItem(user, dispatch) {
|
|
if (user.type != 1) {
|
|
dispatch(push('/fillion/infor'));
|
|
return null
|
|
}
|
|
return (
|
|
<Menu.Item key="middleground" icon={<BarChartOutlined />}>
|
|
<Link to="/middleground">数据中心</Link>
|
|
</Menu.Item>
|
|
);
|
|
}
|