Commit 9e688003 authored by Maofei94's avatar Maofei94

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

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