💄 UI: [前台]:昵称触发下拉菜单方式改为hover+click

This commit is contained in:
fanxb 2019-07-25 20:22:06 +08:00
parent 89bb03e5aa
commit c1e02db0db

View File

@ -32,7 +32,7 @@ class MainLayout extends React.Component {
);
if (userInfo !== null) {
return (
<Dropdown overlay={menu} placement="bottomCenter">
<Dropdown overlay={menu} placement="bottomCenter" trigger={["hover", "click"]}>
<span style={{ cursor: "pointer" }}>{userInfo.username}</span>
</Dropdown>
);