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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.3.32",
3
+ "version": "0.3.33",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -73,7 +73,8 @@ function isVideo(file) {
73
73
  }
74
74
 
75
75
  function getPreviewUrl(file) {
76
- return file.transcodes?.compress?.url || file.blobUrl || file.url;
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
  }