mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev
This commit is contained in:
commit
46df49449a
@ -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>
|
||||
|
@ -1 +0,0 @@
|
||||
module.exports = {"import-postman" : {module: require('exts/yapi-plugin-import-postman/client.js'),options: null},"import-har" : {module: require('exts/yapi-plugin-import-har/client.js'),options: null},"advanced-mock" : {module: require('exts/yapi-plugin-advanced-mock/client.js'),options: null},"import-swagger" : {module: require('exts/yapi-plugin-import-swagger/client.js'),options: null}}
|
Loading…
Reference in New Issue
Block a user