|
|
@ -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() |
|
|
|