fix: merge

This commit is contained in:
wenbo.dong 2017-07-31 11:17:24 +08:00
commit e805fdabe8
4 changed files with 7 additions and 2 deletions

View File

@ -220,6 +220,8 @@ class AddInterface extends Component {
const { interfaceName, url, seqGroup, reqParams, resParams, method } = this.props
const ifTrue = this.verificationURL()
const interfaceId = this.getInterfaceId()
const origin = location.origin
const pathname = location.pathname
const params = {
title: interfaceName,
path: url,
@ -248,6 +250,7 @@ class AddInterface extends Component {
this.changeState(true)
// 初始化 mock
this.mockData()
location.href = `${origin}${pathname}#/add-interface/edit/${interfaceId}`
})
.catch(e => {
console.log(e)

View File

@ -208,7 +208,8 @@
.ant-affix, .save-button {
padding: 20px 0;
background: #F6F6F6;
background: #f1f3f6;
margin: 10px 0 0 0;
button {
margin: 0 auto;
display: block;

View File

@ -66,6 +66,7 @@ class ReqMethod extends Component {
<td>
<span className="h3">请求方式 : </span>
<Select value={method} style={{ width: 180 }} onChange={this.handleChange} size="large">
<Option value="">选择请求方式</Option>
<Option value="POST">POST</Option>
<Option value="GET">GET</Option>
<Option value="PUT">PUT</Option>

View File

@ -42,7 +42,7 @@ const getColumns = (data, props) => {
return <Link to={`/project/${record._id}`}>{text}</Link>
}
},{
title: 'Mock链接',
title: 'Mock基本URL',
key: 'domain',
render: (item) => {
return 'http://'+ item.prd_host + item.basepath;