feat: improve attachment display

This commit is contained in:
Anthony Fu 2022-11-24 12:13:13 +08:00
parent dba069f0ef
commit 3ce1eb3537

View file

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