forked from FoundKeyGang/FoundKey
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">
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue