Skip to content

Commit

Permalink
fix: query type params is not exist in request
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Feb 22, 2022
1 parent 07a9ec8 commit 803aac0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/api/test/api-test.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<eo-api-test-query
class="eo_theme_iblock bbd"
[model]="apiData.queryParams"
(modelChange)="changeQuery()"
(modelChange)="changeQuery($event)"
></eo-api-test-query>
</nz-tab>
<nz-tab [nzTitle]="restTitleTmp" [nzForceRender]="true">
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/api/test/api-test.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export class ApiTestComponent implements OnInit, OnDestroy {
window.sessionStorage.setItem('apiDataWillbeSave', JSON.stringify(apiData));
this.messageService.send({ type: 'addApiFromTest', data: apiData });
}
changeQuery() {
this.apiData.uri = this.apiTest.transferUrlAndQuery(this.apiData.uri, this.apiData.queryParams, {
changeQuery(queryParams) {
this.apiData.uri = this.apiTest.transferUrlAndQuery(this.apiData.uri, queryParams, {
base: 'query',
replaceType: 'replace',
}).url;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/api/test/query/api-test-query.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ApiTestQueryComponent implements OnInit, OnChanges, OnDestroy {

constructor(private editService: ApiTestService) {
this.modelChange$.pipe(debounceTime(500), takeUntil(this.destroy$)).subscribe(() => {
this.modelChange.emit();
this.modelChange.emit(this.model);
});
}

Expand Down

0 comments on commit 803aac0

Please sign in to comment.