mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
fix: 登录错误提示重复弹出的bug
This commit is contained in:
parent
7bfb7b9876
commit
0cf936f03b
@ -46,11 +46,7 @@ class Login extends Component {
|
||||
if (res.payload.data.errcode == 0) {
|
||||
this.props.history.push('/group');
|
||||
message.success('登录成功! ');
|
||||
} else {
|
||||
message.error(res.payload.data.errmsg);
|
||||
}
|
||||
}).catch((err) => {
|
||||
message.error(err);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -48,7 +48,7 @@ class InterfaceMenu extends Component {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} key
|
||||
* @param {String} key
|
||||
*/
|
||||
changeModal = (key, status) => {
|
||||
//visible add_cat_modal_visible change_cat_modal_visible del_cat_modal_visible
|
||||
@ -112,7 +112,7 @@ class InterfaceMenu extends Component {
|
||||
this.setState({
|
||||
visible: false
|
||||
});
|
||||
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
@ -282,7 +282,7 @@ class InterfaceMenu extends Component {
|
||||
if (this.state.filter) {
|
||||
let arr = [];
|
||||
menuList = this.props.list.filter(item => {
|
||||
if (item.name.indexOf(this.state.filter) === -1) {
|
||||
if (item.name.indexOf(this.state.filter) === -1) {
|
||||
return false;
|
||||
}
|
||||
arr.push('cat_' + item._id)
|
||||
@ -328,7 +328,7 @@ class InterfaceMenu extends Component {
|
||||
selectedKeys={currentKes.selects}
|
||||
onSelect={this.onSelect}
|
||||
>
|
||||
<TreeNode title={<Link style={{ fontSize: '14px' }} to={"/project/" + matchParams.id + "/interface/api"}><Icon type="folder" style={{ marginRight: 5 }} />全部接口</Link>} key="root" />
|
||||
<TreeNode className="item-all-interface" title={<Link style={{ fontSize: '14px' }} to={"/project/" + matchParams.id + "/interface/api"}><Icon type="folder" style={{ marginRight: 5 }} />全部接口</Link>} key="root" />
|
||||
{menuList.map((item) => {
|
||||
return <TreeNode title={<div>
|
||||
<Link className="interface-item" to={"/project/" + matchParams.id + "/interface/api/cat_" + item._id} ><Icon type="folder-open" style={{ marginRight: 5 }} />{item.name}</Link>
|
||||
|
@ -1,14 +1,16 @@
|
||||
.web-content{
|
||||
.web-content{
|
||||
.left-menu{
|
||||
min-height: 5rem;
|
||||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
|
||||
background: #FFF;
|
||||
border-radius:5px;
|
||||
margin: 3px;
|
||||
// .item-all-interface {
|
||||
// background-color: red;
|
||||
// }
|
||||
.ant-tabs-bar{
|
||||
border-bottom: none;
|
||||
margin-bottom: 0
|
||||
|
||||
}
|
||||
.ant-tabs-nav{
|
||||
width:100%;
|
||||
@ -40,7 +42,7 @@
|
||||
height: 40px;
|
||||
line-height: 31px;
|
||||
}
|
||||
|
||||
|
||||
.interface-filter{
|
||||
padding-left: 10px;
|
||||
height:45px;
|
||||
@ -52,7 +54,7 @@
|
||||
a{
|
||||
color: #333
|
||||
}
|
||||
|
||||
|
||||
.btn-http{
|
||||
height: 23px;
|
||||
font-size: 10px;
|
||||
@ -93,8 +95,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user