ali 3 лет назад
Родитель
Сommit
f2b7acbb84
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/components/FormBuilderCustumComponents/ContentMedias/ContentMedias.vue

+ 5 - 1
src/components/FormBuilderCustumComponents/ContentMedias/ContentMedias.vue

@@ -159,7 +159,11 @@ export default {
         return
         return
       }
       }
       if (this.showDownloadLink) {
       if (this.showDownloadLink) {
-        const source = media.file || media.url
+        if (media.url) {
+          window.open(media.url, '_blank')
+        }
+
+        const source = media.file
         if (!source) {
         if (!source) {
           return
           return
         }
         }