From 3ce1eb3537d081c203478de7c0ab4c0fb597e170 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 24 Nov 2022 12:13:13 +0800 Subject: [PATCH] feat: improve attachment display --- components/common/CommonBlurhash.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/common/CommonBlurhash.ts b/components/common/CommonBlurhash.ts index 6b07bd89..9c27fd0a 100644 --- a/components/common/CommonBlurhash.ts +++ b/components/common/CommonBlurhash.ts @@ -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)