2022-02-21 13:03:42 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
const route = useRoute()
|
|
|
|
const timer = useState('timer', () => 0)
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-03-31 13:31:04 +00:00
|
|
|
<NuxtExampleLayout example="routing/universal-router">
|
2022-02-21 13:03:42 +00:00
|
|
|
A page...
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<template v-if="timer">
|
2022-02-22 21:40:20 +00:00
|
|
|
Processing navigation in 0.{{ timer }}s
|
2022-02-21 13:03:42 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #nav>
|
|
|
|
<nav class="flex align-center gap-4 p-4">
|
|
|
|
<NuxtLink to="/" class="n-link-base">
|
|
|
|
Home
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink to="/forbidden" class="n-link-base">
|
|
|
|
Forbidden
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink to="/redirect" class="n-link-base">
|
|
|
|
Redirect
|
|
|
|
</NuxtLink>
|
|
|
|
</nav>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
<div class="text-center p-4 op-50">
|
|
|
|
Current route: <code>{{ route.path }}</code>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</NuxtExampleLayout>
|
|
|
|
</template>
|