[Vuejs]-Routing back with in a time frame

0👍

The problem is inside the handler function passed to setTimeout, which uses this.$router, which is a property of the instance. The problem can be solved with arrow functions.

setTimeout(() => { this.$router.push('/dashboard'); }, 5000);

Leave a comment