diff --git a/client/containers/AddInterface/InterfaceTest/InterfaceTest.js b/client/containers/AddInterface/InterfaceTest/InterfaceTest.js index c562b6f1..fe031b1d 100644 --- a/client/containers/AddInterface/InterfaceTest/InterfaceTest.js +++ b/client/containers/AddInterface/InterfaceTest/InterfaceTest.js @@ -239,7 +239,7 @@ export default class InterfaceTest extends Component { style={{marginLeft: 10}} loading={this.state.loading} >发送 - (请求测试真实接口) + (请求测试真实接口)
@@ -294,10 +294,9 @@ export default class InterfaceTest extends Component {
-
+
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: {