<template>
    <div>
        <p>id: {{ $route.params.id }}</p>
        <p>name: {{ $route.params.name }}</p>
    </div>
</template>

<script setup>
    const route = useRoute()
    console.log(route.params.id)
    console.log(route.params.name)
</script>