quasar-ui-danx 0.3.32 → 0.3.33
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -73,7 +73,8 @@ function isVideo(file) {
|
|
73
73
|
}
|
74
74
|
|
75
75
|
function getPreviewUrl(file) {
|
76
|
-
|
76
|
+
const transcodes = file?.transcodes;
|
77
|
+
return transcodes?.mp4?.url || transcodes?.compress?.url || file.blobUrl || file.url;
|
77
78
|
}
|
78
79
|
|
79
80
|
function getThumbUrl(file) {
|
@@ -170,7 +170,6 @@ const isPdf = computed(() => !!mimeType.value.match(/^application\/pdf/));
|
|
170
170
|
const previewUrl = computed(() => {
|
171
171
|
const transcodes = computedImage.value?.transcodes;
|
172
172
|
|
173
|
-
console.log("calc preview", transcodes, computedImage.value);
|
174
173
|
if (isVideo.value && transcodes?.mp4?.url) {
|
175
174
|
return transcodes.mp4.url;
|
176
175
|
}
|