fix: old test history authorization lose

This commit is contained in:
buqiyuan 2023-03-15 10:41:25 +08:00
parent 361bc9af8a
commit 25a7e9abd1

View File

@ -203,6 +203,12 @@ export class ApiTestComponent implements OnInit, AfterViewInit, OnDestroy, TabVi
uuid = uuid.replace('history_', '');
const history: ApiTestHistory = await this.apiTest.getHistory(uuid);
console.log('history.request', history.request);
history.request.authInfo = {
authInfo: {},
authType: noAuth.name,
isInherited: 0,
...history.request.authInfo
};
this.model.request = history.request;
this.model.testResult = history.response;
} else {