[Vuejs]-Modify router meta field in Vue.js project using Gridsome

0👍

You can get the route object via this inside components script tag

<script>
export default {
  created () {
    this.$route.meta = {requiresAuth: true}    
  }
}
</script>

Leave a comment