Commit 631f8cf2 by zeven

所有客户端自动上报版本号

parent d19f0eed
...@@ -210,9 +210,9 @@ class App extends React.Component { ...@@ -210,9 +210,9 @@ class App extends React.Component {
curRoute = 'vertical'; curRoute = 'vertical';
} }
await this.setState({curRoute}); await this.setState({curRoute});
dispatch({type: 'admin/version'});
dispatch({type: 'goods/getBags'}); dispatch({type: 'goods/getBags'});
} else await this.setState({curRoute: this.device}); } else await this.setState({curRoute: this.device});
dispatch({type: 'admin/version'}); // 上报当前客户端版本
await counterInterval(dispatch, res.data.expiresIn); await counterInterval(dispatch, res.data.expiresIn);
this.listen(); this.listen();
} else { } else {
......
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