Some Example
parent
08ec4ef29b
commit
a8451851e9
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
<div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><NuxtLink to="/">Home</NuxtLink></li>
|
||||
<li><NuxtLink to="/about">About</NuxtLink></li>
|
||||
<li><NuxtLink to="/products/1122">Product 1122</NuxtLink></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<slot/>
|
||||
</div>
|
||||
|
||||
</template>
|
|
@ -2,4 +2,13 @@
|
|||
<div>
|
||||
<h1>Login Page</h1>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
<script setup>
|
||||
definePageMeta({
|
||||
layout:'default'
|
||||
})
|
||||
|
||||
export default {
|
||||
layout:'default'
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,17 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>ID is : {{id}}</h1>
|
||||
<NuxtLink to="/">HOME</NuxtLink>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
id:this.$route.params.id
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue