mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-27 05:30:14 +08:00
fix: post 请求改成 get,body 参数没删掉
This commit is contained in:
parent
1075e06b68
commit
244c3110fd
@ -8,6 +8,9 @@ const mockEditor = require('./mockEditor.js')
|
||||
import { formatTime } from '../../../../common.js';
|
||||
import ErrMsg from '../../../../components/ErrMsg/ErrMsg.js';
|
||||
import variable from '../../../../constants/variable';
|
||||
import constants from '../../../../constants/variable.js'
|
||||
|
||||
const HTTP_METHOD = constants.HTTP_METHOD;
|
||||
// import { Card } from 'antd'
|
||||
// import { getMockUrl } from '../../reducer/modules/news.js'
|
||||
|
||||
@ -353,8 +356,12 @@ class View extends Component {
|
||||
<span className="colKey">请求Body类型:</span>
|
||||
<span className="colValue">{this.props.curData.req_body_type}</span>
|
||||
</div>*/}
|
||||
{aceEditor}
|
||||
{this.req_body_form(this.props.curData.req_body_type, this.props.curData.req_body_form)}
|
||||
<div style={{display: this.props.curData.method && HTTP_METHOD[this.props.curData.method.toUpperCase()].request_body ? '' : 'none'}}>
|
||||
{ aceEditor }
|
||||
{
|
||||
this.req_body_form(this.props.curData.req_body_type, this.props.curData.req_body_form)
|
||||
}
|
||||
</div>
|
||||
{/*<div className="colreqBodyType">
|
||||
<span className="colKey">返回Body类型:</span>
|
||||
<span className="colValue">{this.props.curData.res_body_type}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user