feat: improve attachment display

zio/stable
Anthony Fu 2022-11-24 12:13:13 +08:00
parent dba069f0ef
commit 3ce1eb3537
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ export default defineComponent({
isLoaded.value = true isLoaded.value = true
} }
img.src = props.src img.src = props.src
setTimeout(() => {
isLoaded.value = true
}, 3_000)
if (props.blurhash) { if (props.blurhash) {
const pixels = decode(props.blurhash, 32, 32) const pixels = decode(props.blurhash, 32, 32)