fix(knife4j): 修复OpenAPI服务地址解析
This commit is contained in:
parent
9f29022874
commit
89c0b6d67b
@ -52,7 +52,7 @@ export function parseOpenApiDocument(document: OpenApiDocument): ParsedDocument
|
|||||||
groupUrl: serviceUrl,
|
groupUrl: serviceUrl,
|
||||||
host: document.host || extractHost(serviceUrl),
|
host: document.host || extractHost(serviceUrl),
|
||||||
methodCounts: countMethods(operations),
|
methodCounts: countMethods(operations),
|
||||||
serviceUrl: document.info?.termsOfService || serviceUrl,
|
serviceUrl,
|
||||||
title: document.info?.title || 'Swagger API',
|
title: document.info?.title || 'Swagger API',
|
||||||
version: document.info?.version || '',
|
version: document.info?.version || '',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user