Force recreation of img node.

This commit is contained in:
Roger Braun 2016-11-07 16:23:54 +01:00
parent d59f2985bd
commit f529c36a9c

View file

@ -1,7 +1,7 @@
<template>
<div class="attachment">
<a class="image-attachment" v-if="nsfw" v-on:click.prevent="showNsfw()">
<img :src="nsfwImage"></img>
<img :key="nsfwImage" :src="nsfwImage"></img>
</a>
<a class="image-attachment" v-if="type === 'image' && !nsfw" :href="attachment.url" target="_blank"><img :src="attachment.url"></img></a>