Commit 9e688003 authored by Maofei94's avatar Maofei94

perf(globalheader): 修改头部展示内容

parent 33ee30b8
......@@ -7,7 +7,7 @@ import { Avatar, Menu, Spin } from 'antd';
import React from 'react';
import HeaderDropdown from '../HeaderDropdown';
import styles from './index.less';
import logo from '@/assets/images/logo/panda-logo2.png';
class AvatarDropdown extends React.Component {
/* eslint-disable no-unused-vars */
onMenuClick = event => {};
......@@ -15,9 +15,8 @@ class AvatarDropdown extends React.Component {
render() {
const {
currentUser = {
avatar:
'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
name: 'Serati Ma',
avatar: logo,
name: '测试人员',
},
} = this.props;
const menuHeaderDropdown = (
......
......@@ -23,26 +23,28 @@ const GlobalHeaderRight = props => {
className={`${styles.action} ${styles.search}`}
placeholder="站内搜索"
defaultValue=""
options={[
{
label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>,
value: 'umi ui',
},
{
label: <a href="next.ant.design">Ant Design</a>,
value: 'Ant Design',
},
{
label: <a href="https://protable.ant.design/">Pro Table</a>,
value: 'Pro Table',
},
{
label: <a href="https://prolayout.ant.design/">Pro Layout</a>,
value: 'Pro Layout',
},
]}
options={
[
// {
// label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>,
// value: 'umi ui',
// },
// {
// label: <a href="next.ant.design">Ant Design</a>,
// value: 'Ant Design',
// },
// {
// label: <a href="https://protable.ant.design/">Pro Table</a>,
// value: 'Pro Table',
// },
// {
// label: <a href="https://prolayout.ant.design/">Pro Layout</a>,
// value: 'Pro Layout',
// },
]
}
/>
<Tooltip title="使用文档">
{/* <Tooltip title="使用文档">
<a
style={{
color: 'inherit',
......@@ -54,7 +56,7 @@ const GlobalHeaderRight = props => {
>
<QuestionCircleOutlined />
</a>
</Tooltip>
</Tooltip> */}
<NoticeIcon className={styles.action} />
<Avatar />
{/* <SelectLang className={styles.action} /> */}
......
......@@ -54,7 +54,7 @@ const Login = props => {
)}
<UserName
name="userName"
placeholder="用户名: admin or user"
placeholder="请输入用户名"
rules={[
{
required: true,
......@@ -64,7 +64,7 @@ const Login = props => {
/>
<Password
name="password"
placeholder="密码: ant.design"
placeholder="请输入密码"
rules={[
{
required: true,
......@@ -79,13 +79,13 @@ const Login = props => {
>
自动登录
</Checkbox>
<a
{/* <a
style={{
float: 'right',
}}
>
忘记密码
</a>
</a> */}
</div>
<Submit loading={submitting}>登录</Submit>
</LoginForm>
......
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