Skip to content

Commit

Permalink
fix: adjust 700 to 300
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 3, 2022
1 parent f5da7a7 commit 53f8974
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class ApiTestBodyComponent implements OnInit, OnChanges, AfterViewInit, O
this.beforeChangeBodyByType(val[0]);
});
this.initListConf();
this.rawChange$.pipe(debounceTime(700), takeUntil(this.destroy$)).subscribe(() => {
this.rawChange$.pipe(debounceTime(300), takeUntil(this.destroy$)).subscribe(() => {
this.modelChange.emit(this.model);
});
}
Expand Down Expand Up @@ -131,9 +131,9 @@ export class ApiTestBodyComponent implements OnInit, OnChanges, AfterViewInit, O
uploadBinary = (file) =>
new Observable((observer: Observer<boolean>) => {
this.model = {};
this.binaryFiles=[];
if (file.size >= 5*1024*1024) {
this.message.error($localize `The file is too large and needs to be less than 5 MB`);
this.binaryFiles = [];
if (file.size >= 5 * 1024 * 1024) {
this.message.error($localize`The file is too large and needs to be less than 5 MB`);
observer.complete();
return;
}
Expand Down

0 comments on commit 53f8974

Please sign in to comment.