fix pdf inline blank screen
This commit is contained in:
parent
fbeec5abd5
commit
cf0a844eb8
1 changed files with 1 additions and 5 deletions
|
|
@ -101,11 +101,7 @@ const updateSource = () => {
|
||||||
eventAttachment.loadThumbnail().then((url) => {
|
eventAttachment.loadThumbnail().then((url) => {
|
||||||
source.value = url.data;
|
source.value = url.data;
|
||||||
})
|
})
|
||||||
} else if (isImage.value) {
|
} else if (isImage.value || isVideo.value || isPDF.value) {
|
||||||
eventAttachment.loadSrc().then((url) => {
|
|
||||||
source.value = url.data;
|
|
||||||
})
|
|
||||||
} else if (isVideo.value) {
|
|
||||||
eventAttachment.loadSrc().then((url) => {
|
eventAttachment.loadSrc().then((url) => {
|
||||||
source.value = url.data;
|
source.value = url.data;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue