diff --git a/client/containers/AddInterface/AddInterface.js b/client/containers/AddInterface/AddInterface.js index 1e0e333b..e40dfbf2 100644 --- a/client/containers/AddInterface/AddInterface.js +++ b/client/containers/AddInterface/AddInterface.js @@ -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)