3.0.1
https://jsfiddle.net/mu6f7zj6/
click Go to Foo , and console said Cannot read property 'push' of undefined.
1s after clicked Go to Foo should redirect to '/' (home), and 'foo' should disapear
Cannot read property 'push' of undefined.
There's nothing related to Vue, that's because you're using wrong this context is setTimeout callback.
You should learn more about pure js before using Vue.
solved by add "var self = this, self.$router.push()"
"tonywangcn" Good Job