Merge branch '608-fix-pdf-inline-blank-screen' into 'dev'

fix pdf inline blank screen

See merge request keanuapp/keanuapp-weblite!378
This commit is contained in:
N Pex 2025-12-10 11:21:46 +00:00
commit f79d5192cd

View file

@ -101,11 +101,7 @@ const updateSource = () => {
eventAttachment.loadThumbnail().then((url) => {
source.value = url.data;
})
} else if (isImage.value) {
eventAttachment.loadSrc().then((url) => {
source.value = url.data;
})
} else if (isVideo.value) {
} else if (isImage.value || isVideo.value || isPDF.value) {
eventAttachment.loadSrc().then((url) => {
source.value = url.data;
})