|
@@ -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
|
};
|