From 25a7e9abd1ee81f9eaceed3cd10f96190d410676 Mon Sep 17 00:00:00 2001 From: buqiyuan <1743369777@qq.com> Date: Wed, 15 Mar 2023 10:41:25 +0800 Subject: [PATCH] fix: old test history authorization lose --- .../workspace/project/api/http/test/api-test.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/browser/src/app/pages/workspace/project/api/http/test/api-test.component.ts b/src/browser/src/app/pages/workspace/project/api/http/test/api-test.component.ts index aef8320b..dee19c04 100644 --- a/src/browser/src/app/pages/workspace/project/api/http/test/api-test.component.ts +++ b/src/browser/src/app/pages/workspace/project/api/http/test/api-test.component.ts @@ -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 {