seimin il y a 1 an
Parent
commit
86166d1dba
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/app/views/sys-config/sys-config.component.ts

+ 4 - 4
src/app/views/sys-config/sys-config.component.ts

@@ -307,13 +307,13 @@ export class SysConfigComponent implements OnInit {
307 307
         observer.complete();
308 308
         return;
309 309
       }
310
-      const isLt2M = file.size / 1024 / 1024 < 2;
311
-      if (!isLt2M) {
312
-        this.msg.error('图片大小不能大于2MB!');
310
+      const isLt4M = file.size / 1024 / 1024 < 4;
311
+      if (!isLt4M) {
312
+        this.msg.error('图片大小不能大于4MB!');
313 313
         observer.complete();
314 314
         return;
315 315
       }
316
-      observer.next(isPic && isLt2M);
316
+      observer.next(isPic && isLt4M);
317 317
       observer.complete();
318 318
     });
319 319
   };