diff --git a/client/containers/User/LeftMenu.js b/client/containers/User/LeftMenu.js
index 2dc2d6c3..5a3acec9 100644
--- a/client/containers/User/LeftMenu.js
+++ b/client/containers/User/LeftMenu.js
@@ -10,7 +10,8 @@ const Option = AutoComplete.Option;
state => {
console.log(state);
return {
- curUid: state.login.uid + ''
+ curUid: state.login.uid + '',
+ curUserName: state.login.userName
}
}
)
@@ -26,7 +27,8 @@ class LeftMenu extends Component {
}
static propTypes = {
- curUid: PropTypes.string
+ curUid: PropTypes.string,
+ curUserName: PropTypes.string
}
//延迟搜索
@@ -80,6 +82,9 @@ class LeftMenu extends Component {
const { dataSource } = this.state;
return (
+
+
用户名 : {`${this.props.curUserName}`}
+
@@ -98,7 +103,7 @@ class LeftMenu extends Component {
-
diff --git a/client/containers/User/Profile.js b/client/containers/User/Profile.js
index c2a0e528..b8de8a2e 100644
--- a/client/containers/User/Profile.js
+++ b/client/containers/User/Profile.js
@@ -1,5 +1,5 @@
import React, { Component } from 'react'
-import { Row, Col, Icon, Input, Button, Select, message } from 'antd'
+import { Row, Col, Input, Button, Select, message } from 'antd'
import axios from 'axios';
import {formatTime} from '../../common.js'
import PropTypes from 'prop-types'
@@ -131,7 +131,8 @@ class Profile extends Component {
if (this.state.usernameEdit === false) {
userNameEditHtml =
{userinfo.username}
- { this.handleEdit('usernameEdit', true) }}>修改
+ {/* { this.handleEdit('usernameEdit', true) }}>修改*/}
+
} else {
userNameEditHtml =
@@ -146,7 +147,8 @@ class Profile extends Component {
if (this.state.emailEdit === false) {
emailEditHtml =
{userinfo.email}
- { this.handleEdit('emailEdit', true) }} >修改
+ {/* { this.handleEdit('emailEdit', true) }} >修改*/}
+
} else {
emailEditHtml =
@@ -161,7 +163,8 @@ class Profile extends Component {
if (this.state.roleEdit === false) {
roleEditHtml =
{roles[userinfo.role]}
- { this.handleEdit('roleEdit', true) }} >修改
+ {/* { this.handleEdit('roleEdit', true) }} >修改*/}
+
} else {
roleEditHtml =