+
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: {