Skip to content

Commit

Permalink
feat:dubbo3元数据中心接口信息json展示 (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Jan 30, 2024
1 parent dc4d819 commit bdb4e78
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/src/polaris/service/detail/interface/PageDuck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,17 @@ export default class InterfacePageDuck extends GridPageDuck {
})
yield takeLatest(types.SHOW_DETAIL, function*(action) {
const detail = action.payload as InterfacePageDuck['Item']
if (detail.protocol === "dubbo") {
yield Modal.confirm({
size: 'l',
message: 'dubbo接口详情',
description: (
<Form>
<FormText>{detail.content}</FormText>
</Form>
)
})
}
const parameterDetail = JSON.parse(detail.content)?.[detail.method?.toLowerCase()]
const requestParameter = parameterDetail.parameters
const responses = parameterDetail.responses
Expand Down

0 comments on commit bdb4e78

Please sign in to comment.