mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-03 20:28:14 +08:00
fix: query type params is not exist in request
This commit is contained in:
parent
07a9ec8eee
commit
803aac070e
@ -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">
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user