From 1dfbdd345812e76abdeec3ee5efe9424dc13a733 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 16 六月 2020 19:13:33 +0800
Subject: [PATCH] 2020-06-16
---
src/mob/header/index.jsx | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/mob/header/index.jsx b/src/mob/header/index.jsx
index da88082..0777948 100644
--- a/src/mob/header/index.jsx
+++ b/src/mob/header/index.jsx
@@ -1,5 +1,5 @@
import React, {Component} from 'react'
-// import PropTypes from 'prop-types'
+import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
@@ -14,9 +14,10 @@
const { confirm } = Modal
class MobHeader extends Component {
- // static propTpyes = {
- // collapse: PropTypes.bool,
- // }
+ static propTpyes = {
+ view: PropTypes.string,
+ }
+
state = {
dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
logourl: window.GLOB.mainlogo,
@@ -46,9 +47,16 @@
}
render () {
+ const { view } = this.props
+
return (
<header className="mob-header-container">
<div className="header-logo"><img src={this.state.logourl} alt=""/></div>
+ {view === 'manage' ?
+ <div className="mob-manage-title">
+ 绉诲姩绔鐞�
+ </div> :null
+ }
<Dropdown className="header-setting" overlay={
<Menu>
<Menu.Item key="2" onClick={this.logout}>{this.state.dict['mob.header.logout']}</Menu.Item>
--
Gitblit v1.8.0