Skip to content

Commit 8672087

Browse files
Update AvatarPage.vue
1 parent 24ca446 commit 8672087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/AvatarPage.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<div style="width: 80vw; margin: 0 auto">
44
<div class="text-h4 q-my-sm">Choose your photo</div>
55
<div style="display: grid;grid-template-columns: repeat(4,1fr)">
6-
<div v-for="i in 31" class="row flex-center" :key="i" @click="console.log(i); selectAvatar(i)"
7-
:style="`border:${avatar === i ? '4px #1976D2 solid' : '4px #fff solid'}`">
8-
<img :src="store.avatar(i)" alt="" style="width: 60px; height: 60px">
6+
<div v-for="i in 32" class="row flex-center" :key="i" @click="selectAvatar(i-1)"
7+
:style="`border:${avatar === i-1 ? '4px #1976D2 solid' : '4px #fff solid'}`">
8+
<img :src="store.avatar(i-1)" alt="" style="width: 60px; height: 60px">
99
</div>
1010
</div>
1111
<div class="row justify-end q-my-md">

0 commit comments

Comments
 (0)