Jelajahi Sumber

updata:compUpload

xll 5 bulan lalu
induk
melakukan
a5f1e27ea2

+ 5 - 8
projects/textbook/src/app/comp-upload/comp-upload.component.ts

@@ -85,9 +85,9 @@ export class CompUploadComponent implements OnInit {
       return
     }
     let isEncrypt = await this.isEncrypt(info)
-    if (isEncrypt) {
-      return
-    }
+    // if (isEncrypt) {
+    //   return
+    // }
     this.disabled = true
     if (info.file.status !== 'uploading') {
       // 选择文件后,自动开始上传
@@ -179,13 +179,11 @@ export class CompUploadComponent implements OnInit {
               if (isEncrypt) {
                 clearTimeout(this.timeOut)
                 this.timeOut = setTimeout(() => {
-                  // this.msg.create('error', file.name + '为加密文件,无法上传。',
-                  //   {nzDuration: 10000}
-                  // )
                   this.notification.create(
                     'error',
                     '请勿上传加密文件',
-                    `${file.name} 为加密文件,无法上传。`
+                    `${file.name} 为加密文件,影响导出,请替换。`,
+                    { nzDuration: 0 }
                   );
 
                 }, 1000);
@@ -196,6 +194,5 @@ export class CompUploadComponent implements OnInit {
         }
       } else { resolve(false) }
     })
-
   }
 }