Skip to content

Commit effdc7a

Browse files
authored
Refactor id computation in [id].vue
1 parent e7436f1 commit effdc7a

File tree

1 file changed

+1
-1
lines changed
  • content/ja/02.concepts/03.routing/.template/solutions/pages/posts

1 file changed

+1
-1
lines changed

content/ja/02.concepts/03.routing/.template/solutions/pages/posts/[id].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
const route = useRoute()
3-
const id = computed(() => route.params.id)
3+
const id = route.params.id
44
</script>
55

66
<template>

0 commit comments

Comments
 (0)