1
0
forked from mirror/misskey

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

View File

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