mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
fix: merge
This commit is contained in:
commit
e805fdabe8
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user