另一个无法在回调中读取道具

Another cannot read props on callback

在提交按钮上,我正在检查用户是否正常。 但是我无法在回调中访问我的道具。

Meteor.loginWithPassword({username:username}, password, function(error){
  if(!error){
    this.props.router.push('/');
  }
});


  constructor(props) {
    super(props)

    this.state = {
     username: '' ,
     password:'',
     errors: [],
     alertVisible: false
 };

我的按钮:

<Button type='submit'  onClick={this.onClickLogIn.bind(this)}>Go</Button>

我该怎么办?

已解决:

Meteor.loginWithPassword({username:username}, password, (error) => {
  if(!error){
    this.props.router.push('/ltr/dashboard');
  }
});