const User = {
template: '<div>User {{ $route.params.id }}</div>'
}
console.log('The id is: ' + this.$route.params.id);
<script setup>
import { useRoute } from 'vue-router';
const route = useRoute();
const id = route.params.id; // read parameter id (it is reactive)
</script>
<router-link :to="{ name: 'movie', params: { id: item.id } }">{{ item.title }}</router-link>