Skip to content

Commit

Permalink
Merge pull request #99 from lywcc/main
Browse files Browse the repository at this point in the history
fix: add the display of api address on model-service-detail page
  • Loading branch information
Carrotzpc authored Dec 20, 2023
2 parents e1498cf + f087e78 commit 2a9d7a3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/pages/ModelServiceDetail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,28 @@ class ModelServiceDetail$$Page extends React.Component {
label: this.i18n('i18n-vgl4ncps') /* 模型 */,
span: 1,
},
{
_unsafe_MixedSetter_children_select: 'SlotSetter',
_unsafe_MixedSetter_label_select: 'StringSetter',
children: (
<Typography.Text
__component_name="Typography.Text"
disabled={false}
ellipsis={true}
strong={false}
style={{ fontSize: '' }}
>
{__$$eval(() =>
this.getFullDescribe({
key: 'api',
})
)}
</Typography.Text>
),
key: 'wdifgpbo6x',
label: 'API地址',
span: 1,
},
{
children: (
<Typography.Paragraph
Expand Down Expand Up @@ -1044,6 +1066,14 @@ function __$$createChildContext(oldContext, ext) {
const childContext = {
...oldContext,
...ext,
// 重写 state getter,保证 state 的指向不变,这样才能从 context 中拿到最新的 state
get state() {
return oldContext.state;
},
// 重写 props getter,保证 props 的指向不变,这样才能从 context 中拿到最新的 props
get props() {
return oldContext.props;
},
};
childContext.__proto__ = oldContext;
return childContext;
Expand Down

0 comments on commit 2a9d7a3

Please sign in to comment.