Skip to content

Commit

Permalink
fix: 修改tagsView右键菜单bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NLRX-WJC committed May 18, 2020
1 parent cdbb5aa commit df63e88
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/views/layout/TagsView/components/TagList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ class TagList extends Component {
this.props.history.push("/dashboard");
this.closeContextMenu();
};
handleRefreshTag = () => {
const { path } = this.state.currentTag;
this.props.history.push(path);
this.closeContextMenu();
};
handleCloseOtherTags = () => {
const currentTag = this.state.currentTag;
const { path } = currentTag;
Expand Down Expand Up @@ -144,7 +139,6 @@ class TagList extends Component {
style={{ left: `${left}px`, top: `${top}px` }}
ref={this.contextMenuContainer}
>
<li onClick={this.handleRefreshTag}>刷新</li>
<li onClick={this.handleCloseOtherTags}>关闭其他</li>
<li onClick={this.handleCloseAllTags}>关闭所有</li>
</ul>
Expand Down

0 comments on commit df63e88

Please sign in to comment.