mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-04 12:47:49 +08:00
fix: header send error
This commit is contained in:
parent
da21132265
commit
3cfbeb5d78
@ -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>) => {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user