[Vuejs]-How to implement vue-routing based on first time visit and already visited

0👍

Use dynamic component

<component :is="loadMyComponent"/>

loadMyComponent () {
  let visited = false
  // check if users visited your page, you can use cookie
  return visited ? 'first-component' : 'second-component'
}

Leave a comment