How to redirect Vue/Nuxt SPA Page automatically

Solution 1:

One simple workaround is to use fetch hook in the index page to change rout to /test; Here is the code:

// index.vue
fetch() {
  this.$router.push('./test');
}