diff --git a/client/containers/AddInterface/AddInterface.js b/client/containers/AddInterface/AddInterface.js index 9406495c..2d599d27 100644 --- a/client/containers/AddInterface/AddInterface.js +++ b/client/containers/AddInterface/AddInterface.js @@ -100,7 +100,6 @@ class AddInterface extends Component { props.getResParams('') props.addReqHeader(initData) } - document.querySelector('.w-e-text-container').style.height = '200px' } getInterfaceId () { diff --git a/client/reducer/Login/login.js b/client/reducer/Login/login.js index 790e346d..030c0b3c 100644 --- a/client/reducer/Login/login.js +++ b/client/reducer/Login/login.js @@ -27,7 +27,7 @@ export default (state = initialState, action) => { loginState: (action.payload.data.errcode == 0)?MEMBER_STATUS:GUEST_STATUS, userName: action.payload.data.data ? action.payload.data.data.username : null, uid: action.payload.data.data ? action.payload.data.data._id : null, - server_ip: action.payload.data.data.server_ip + server_ip: action.payload.data.data ? action.payload.data.data.server_ip:null }; } case LOGIN: { diff --git a/client/reducer/login/login.js b/client/reducer/login/login.js index 790e346d..030c0b3c 100644 --- a/client/reducer/login/login.js +++ b/client/reducer/login/login.js @@ -27,7 +27,7 @@ export default (state = initialState, action) => { loginState: (action.payload.data.errcode == 0)?MEMBER_STATUS:GUEST_STATUS, userName: action.payload.data.data ? action.payload.data.data.username : null, uid: action.payload.data.data ? action.payload.data.data._id : null, - server_ip: action.payload.data.data.server_ip + server_ip: action.payload.data.data ? action.payload.data.data.server_ip:null }; } case LOGIN: {