Skip to content

Commit

Permalink
fixbug/add-model-edit-fail (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-keguo authored Sep 5, 2022
1 parent b807c15 commit e395f4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/routes/System/Dict/AddModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ class AddModal extends Component {
)}
</FormItem>
{/* status */}
{this.props.isShow?
(
{
<FormItem
{...formItemLayout}
label={getIntlContent("SHENYU.SYSTEM.STATUS")}
Expand All @@ -145,10 +144,10 @@ class AddModal extends Component {
initialValue: enabled,
valuePropName: 'checked',
})(
<Switch />
<Switch disabled={!this.props.isShow} />
)}
</FormItem>
) : ''}
}
</Form>
</Modal>
)
Expand Down
2 changes: 1 addition & 1 deletion src/routes/System/Metadata/AddModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class AddModal extends Component {
initialValue: enabled,
valuePropName: 'checked',
})(
<Switch disabled="{!this.props.isShow}" />
<Switch disabled={!this.props.isShow} />
)}
</FormItem>
)}
Expand Down

0 comments on commit e395f4b

Please sign in to comment.