title: Vue Router this.$router.push not working on methods
body: <p>I'm doing login, but after the login methods gets success, I'm pushing a route for the <code>$router</code> object and it's not working, can someone help me?</p>
  <p>My code:</p>
  <pre class="lang-js prettyprint-override"><code>doLogin(){
         this.attemptLogin({...this.user}).then(function(){
              this.$router.push('/') 
              } )
    },
  </code></pre>
  <p>So, the login methods execute as expected, but the callback <code>this.$router.push('/')</code> does not run.</p>
  <p>My <code>attemptLogin</code> is an action, it's code is following:</p>
  <pre class="lang-js prettyprint-override"><code>export const attemptLogin = ( {commit}, user) =&gt; {
      return http.post('login', {
          'email': user.email,
          'password': user.password
      }).then(response =&gt; {
          return commit(types.setToken, response.data)
      }).catch( e =&gt; console.log(e))
  }
  </code></pre>