This commit is contained in:
waliang.wang 2017-07-31 11:19:42 +08:00
parent 2d097c9961
commit 536fa19ce3

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)