Browse Source

修改bug

chenrui 2 years ago
parent
commit
67bbcd8962
1 changed files with 12 additions and 6 deletions
  1. 12 6
      src/components/UploadFile/index.vue

+ 12 - 6
src/components/UploadFile/index.vue

@@ -139,10 +139,10 @@ export default {
       this.previewVisible = false
       this.previewVisible = false
     },
     },
     handlePreview (file) {
     handlePreview (file) {
-      if (this.listType == 'text') {
-        return
-      }
-      console.log(file)
+      // if (this.listType == 'text') {
+      //   return
+      // }
+      // console.log(file)
       if (file.response.status == 200) {
       if (file.response.status == 200) {
         this.previewImage = file.response.data
         this.previewImage = file.response.data
       } else {
       } else {
@@ -252,7 +252,7 @@ export default {
   }
   }
 }
 }
 </script>
 </script>
-<style lang="less">
+<style lang="less" scoped>
   .upload-file{
   .upload-file{
     float: left;
     float: left;
     overflow: hidden;
     overflow: hidden;
@@ -292,5 +292,11 @@ export default {
       white-space: normal;
       white-space: normal;
     }
     }
   }
   }
-
+/deep/.ant-modal-body{
+      max-height:860px;
+      text-align:center;
+  }
+ /deep/.ant-modal-body video{
+    width: 90% !important;
+  }
 </style>
 </style>