<script> | |
export default { | |
apollo: { | |
user: { | |
// ... | |
} | |
}, | |
async onBeforeEachRoute (to, from, next) { | |
await this.$apollo.firstLoad | |
if (this.user) { | |
} | |
next() | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment