浏览代码

取消出版社上传文件校验

warrior 5 月之前
父节点
当前提交
acceb40baa
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      projects/textbook/src/app/comp-upload/comp-upload.component.ts

+ 3 - 1
projects/textbook/src/app/comp-upload/comp-upload.component.ts

@@ -86,7 +86,9 @@ export class CompUploadComponent implements OnInit {
     if (info.type == 'removed') {
       return
     }
-    let isEncrypt = await this.isEncrypt(info)
+    if(this.acl != 'private'){
+      let isEncrypt = await this.isEncrypt(info)
+    }
     // if (isEncrypt) {
     //   return
     // }