Nuxt/test/fixtures/basic/pages/router-guard.vue

12 lines
161 B
Vue

<template>
<div>Router Guard</div>
</template>
<script>
export default {
beforeRouteEnter(to, from, next) {
next({path: '/async-data'})
}
}
</script>