File tree Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { useUserStore } from ' ~/stores/user'
3
+
3
4
const route = useRoute ()
4
5
const user = useUserStore ()
5
6
const name = route .params .id
@@ -9,35 +10,24 @@ watchEffect(() => {
9
10
</script >
10
11
11
12
<template >
12
- <div >
13
- <h3 >
14
- Hi,
15
- </h3 >
16
- <div >
17
- {{ name }}!
18
- </div >
13
+ <div m-3 >
14
+ <h3 >Hi, {{ name }}!</h3 >
19
15
20
16
<template v-if =" user .otherNames .length " >
21
- <p >
22
- <span >Also as known as:</span >
23
- <ul >
24
- <li v-for =" otherName in user.otherNames" :key =" otherName" >
25
- <router-link :to =" `/hi/${otherName}`" replace >
26
- {{ otherName }}
27
- </router-link >
28
- </li >
29
- </ul >
30
- </p >
17
+ <span >Also as known as:</span >
18
+ <ul >
19
+ <li v-for =" otherName in user.otherNames" :key =" otherName" >
20
+ <router-link :to =" `/hi/${otherName}`" replace >
21
+ {{ otherName }}
22
+ </router-link >
23
+ </li >
24
+ </ul >
31
25
</template >
32
26
33
27
<Counter />
34
28
35
29
<div >
36
- <NuxtLink
37
- to =" /"
38
- >
39
- Back
40
- </NuxtLink >
30
+ <NuxtLink to =" /" >Back</NuxtLink >
41
31
</div >
42
32
</div >
43
33
</template >
You can’t perform that action at this time.
0 commit comments