Commit 90c93d54 by Zhang Xin

配合新机器使用

parent 0f14bb2e
......@@ -47,8 +47,6 @@ const closeDoorSuccess=(data)=>{
}).then((response)=>response.json())
.then((json)=>{
dispatch(logout())
// console.log(json,'breakageContainerjs')
// dispatch(getSubmitStatus(json.meta))
})
}
}
......
......@@ -38,10 +38,10 @@ export default class HomePageContainer extends React.Component{
}
logout(){
// this.props.willCloseDoor();
// let msg={type:'WILL_CLOSEDOOR'}
// sendMsg(JSON.stringify(msg))
this.props.tempLogout()
this.props.willCloseDoor();
let msg={type:'WILL_CLOSEDOOR'};
sendMsg(JSON.stringify(msg))
// this.props.tempLogout()
}
showLogoutPopup(){
......
......@@ -205,7 +205,7 @@ class PageContainer extends React.Component {
break;
case 'SUCCESS_CLOSEDOOR':
if(isSend){
//this.handleCloseDoor()
this.handleCloseDoor()
}
break;
......@@ -216,7 +216,7 @@ class PageContainer extends React.Component {
handleCloseDoor(){
let {dispatch,state} = this.props;
dispatch(logout());
// dispatch(logout());
// this.endCountBack();
// remove(CONFIG.socketType.GETSTOREINFO,this)
// remove(CONFIG.socketType.GETSOCKETMSG,this)
......
......@@ -2,7 +2,7 @@ import fetch from 'isomorphic-fetch';
import {emit} from './event'
let domainIp = '192.168.10.';
let domainIp = '192.168.35.';
const socket = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment