Skip to content

Commit 78d6c51

Browse files
committed
Slight improvement
1 parent 5d44424 commit 78d6c51

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

components/AppHeader.vue

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<header>
77
<nav>
88
<ul>
9+
<li><NuxtLink to="/">Index</NuxtLink></li>
910
<li><NuxtLink to="/about">About</NuxtLink></li>
1011
<li><NuxtLink to="/post/1">Post 1</NuxtLink></li>
1112
<li><NuxtLink to="/post/2">Post 2</NuxtLink></li>

pages/post/[id].vue

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<script setup>
2-
// import { useRoute } from 'vue-router'
32
const route = useRoute()
43
const { id } = route.params
5-
console.log(id)
64
</script>
75

86
<template>

0 commit comments

Comments
 (0)