pan 5 years ago
parent b6b381c119
commit 7f727a6305
  1. 2
      src/App.tsx

@ -24,7 +24,7 @@ class App extends React.Component<any, any> {
const { cookies } = this.props const { cookies } = this.props
if((cookies.get(manager_cookie)||"").length>0){ if((cookies.get(manager_cookie)||"").length>0){
this.setState({ this.setState({
page:<Main manager={cookies.get(manager_cookie)} logout={this.logout()}/> page:<Main manager={cookies.get(manager_cookie)} logout={()=>this.logout()}/>
}) })
}else{ }else{
this.toLogin() this.toLogin()

Loading…
Cancel
Save