diff --git a/client/containers/Login/Login.js b/client/containers/Login/Login.js index e7c42f13..2b99433c 100644 --- a/client/containers/Login/Login.js +++ b/client/containers/Login/Login.js @@ -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); }); } }); diff --git a/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js b/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js index b7f1f562..efe4dd5a 100644 --- a/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js +++ b/client/containers/Project/Interface/InterfaceList/InterfaceMenu.js @@ -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} > - 全部接口} key="root" /> + 全部接口} key="root" /> {menuList.map((item) => { return {item.name} diff --git a/client/containers/Project/Interface/interface.scss b/client/containers/Project/Interface/interface.scss index d6120fa8..69a2bf22 100644 --- a/client/containers/Project/Interface/interface.scss +++ b/client/containers/Project/Interface/interface.scss @@ -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 @@ } } } - - - - -