Commit 94f7c791 by niuxinyu

关门优化2

parent dc5ea835
...@@ -69,7 +69,7 @@ export default class HomePageContainer extends React.Component{ ...@@ -69,7 +69,7 @@ export default class HomePageContainer extends React.Component{
this.onConnectionChange() this.onConnectionChange()
const { rtt, downlink, effectiveType, saveData } = navigator.connection; const { rtt, downlink, effectiveType, saveData } = navigator.connection;
if(rtt<3000&&rtt!=0){ if(rtt<20000){
this.props.willCloseDoor().then(()=>{ this.props.willCloseDoor().then(()=>{
this.props.endCountBack(); this.props.endCountBack();
let msg={type:'WILL_CLOSEDOOR'}; let msg={type:'WILL_CLOSEDOOR'};
......
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