mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
18 lines
434 B
Vue
18 lines
434 B
Vue
<script setup lang="ts">
|
|
const route = useRoute('nested-foo-bar')
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div>nested/[foo]/[bar].vue</div>
|
|
<div>foo: {{ route.params.foo }}</div>
|
|
<div>bar: {{ route.params.bar }}</div>
|
|
<NuxtLink id="user-test" to="/nested/foo/user-test">
|
|
to /nested/foo/user-test
|
|
</NuxtLink>
|
|
<NuxtLink id="test" to="/nested/foo/test">
|
|
to /nested/foo/test
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|