mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
fix: interface path form bug
This commit is contained in:
parent
e7c58c4c5f
commit
063b063dfe
@ -206,11 +206,11 @@ class InterfaceEditForm extends Component {
|
||||
}
|
||||
}
|
||||
}
|
||||
this.setState({
|
||||
req_params: queue
|
||||
})
|
||||
|
||||
}
|
||||
this.setState({
|
||||
req_params: queue
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
@ -564,7 +564,7 @@ class InterfaceEditForm extends Component {
|
||||
initialValue: this.state.res_body_type
|
||||
})(
|
||||
<RadioGroup>
|
||||
<Radio value="json">json</Radio>
|
||||
<Radio value="json">json(mock)</Radio>
|
||||
<Radio value="raw">raw</Radio>
|
||||
|
||||
</RadioGroup>
|
||||
@ -574,6 +574,7 @@ class InterfaceEditForm extends Component {
|
||||
<Row className="interface-edit-item" style={{ display: this.props.form.getFieldValue('res_body_type') === 'json' ? 'block' : 'none' }}>
|
||||
|
||||
<Col span={17} offset={4} >
|
||||
<h3>基于mockjs和json5,可直接写mock模板和注释,具体使用方法请查看文档</h3>
|
||||
<div id="res_body_json" style={{ minHeight: "300px" }} ></div>
|
||||
</Col>
|
||||
</Row>
|
||||
|
@ -324,6 +324,7 @@ class InterfaceMenu extends Component {
|
||||
<Tree
|
||||
className="interface-list"
|
||||
defaultExpandedKeys={currentKes.expands}
|
||||
expandedKeys={currentKes.expands}
|
||||
defaultSelectedKeys={currentKes.selects}
|
||||
selectedKeys={currentKes.selects}
|
||||
onSelect={this.onSelect}
|
||||
|
Loading…
Reference in New Issue
Block a user