fix(client): Use router-link instead of a to avoid page refresh

This commit is contained in:
syuilo 2020-05-16 22:08:21 +09:00
parent ea80d5eac2
commit ca2a33edc9
1 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
<div class="ujigsodd">
<mk-loading v-if="fetching"/>
<div class="stream" v-if="!fetching && images.length > 0">
<a v-for="(image, i) in images" :key="i"
<router-link v-for="(image, i) in images" :key="i"
class="img"
:style="`background-image: url(${thumbnail(image.file)})`"
:href="image.note | notePage"
></a>
:to="image.note | notePage"
></router-link>
</div>
<p class="empty" v-if="!fetching && images.length == 0">{{ $t('nothing') }}</p>
</div>