|
|
|
@ -10,6 +10,7 @@ import {MyMessage} from "./my/MyMessage"; |
|
|
|
|
import {User, UserType} from "./entity"; |
|
|
|
|
import {Cookies} from "react-cookie"; |
|
|
|
|
import {time_score, user_cookie, user_type_cookie, welcome_cookie} from "./account/PropCookie"; |
|
|
|
|
import {backEnd} from "./api"; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 菜单标记 |
|
|
|
@ -190,6 +191,7 @@ export class Main extends React.Component< |
|
|
|
|
<Dropdown.Item>时间币:<span className="text-center text-info">{this.state.timeScore}</span></Dropdown.Item> |
|
|
|
|
{[DialogType.friend,DialogType.leaveWord,DialogType.message].map((type:DialogType,index:number)=><Dropdown.Item disabled={this.state.my.open} key={"dropdown"+index} onClick={()=>this.openDialog(type)}>{type}</Dropdown.Item>)} |
|
|
|
|
<Dropdown.Item onClick={()=>this.props.logout()}>注销登录</Dropdown.Item> |
|
|
|
|
<Dropdown.Item onClick={()=>window.location.href=backEnd}>切换后台</Dropdown.Item> |
|
|
|
|
</Dropdown.Menu> |
|
|
|
|
</Dropdown> |
|
|
|
|
|
|
|
|
|