fix: header send error

This commit is contained in:
scarqin 2023-02-09 10:22:32 +08:00
parent da21132265
commit 3cfbeb5d78
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export abstract class TestServerService implements TestServer {
.map((val: BodyParam) => ({
checkbox: !!val.isRequired,
headerName: val.name,
headerValue: val.paramAttr?.example
headerValue: val['paramAttr.example'] || val.paramAttr?.example
}));
};
const formatBody = (inData: Partial<ApiData>) => {

View File

@ -135,7 +135,7 @@ export class ExtensionService {
let result = {} as ExtensionInfo;
const { code, data }: any = await this.requestDetail(name);
Object.assign(result, data);
if (this.installedMap.has(name)) {
if (this.installedMap?.has(name)) {
Object.assign(result, this.installedMap.get(name), { installed: true });
result.enable = this.isEnable(result.name);
}