yuanyiming 2 년 전
부모
커밋
d393328097
1개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 2
      src/views/firm.vue

+ 11 - 2
src/views/firm.vue

@@ -166,10 +166,18 @@ export default {
       ) {
         this.showFileUrl = url;
         this.showFileType = 1;
-      } else {
+      } else if(
+        url.split(".")[url.split(".").length - 1].toLocaleUpperCase() == ("PNG" || 'JPG')
+      )
+      {
+        this.showFileUrl = url;
+      }
+      else {
+        console.log(url.split(".")[url.split(".").length - 1].toLocaleUpperCase());
+
         this.showFileUrl =
           "https://view.officeapps.live.com/op/view.aspx?src=" + url;
-        this.showFileType = 0;
+          this.showFileType = 0;
       }
       this.showFile = true;
     },
@@ -280,6 +288,7 @@ export default {
   }
 
   .addDialog {
+
     .el-dialog {
       border-radius: 5px;
       overflow: hidden;