mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 15:53:08 +02:00
fix(client): Use router-link instead of a to avoid page refresh
This commit is contained in:
parent
ea80d5eac2
commit
ca2a33edc9
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue