This is an automated email from the ASF dual-hosted git repository. dengliming pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push: new d364532e support get response type from document json (#521) d364532e is described below commit d364532eb4d0fc9bc11d1e4a87c97d63623b4d14 Author: eye-gu <734164...@qq.com> AuthorDate: Sun Mar 16 16:10:51 2025 +0800 support get response type from document json (#521) --- src/routes/Document/components/ApiInfo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/Document/components/ApiInfo.js b/src/routes/Document/components/ApiInfo.js index 54a0441d..62f7f28e 100644 --- a/src/routes/Document/components/ApiInfo.js +++ b/src/routes/Document/components/ApiInfo.js @@ -25,7 +25,7 @@ import { Method } from "./globalData"; const { Title, Text, Paragraph } = Typography; function ApiInfo(props) { - const { + let { apiData: { envProps = [] }, apiDetail, apiDetail: { document, responseParameters, requestHeaders }, @@ -44,6 +44,7 @@ function ApiInfo(props) { }); }); requestParameters = requestParameters ?? documentJSON.parameters; + responseParameters = responseParameters ?? documentJSON.responseType; } catch (e) { // eslint-disable-next-line no-console console.log(e);