mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-30 13:20:24 +08:00
fix
This commit is contained in:
parent
2d097c9961
commit
536fa19ce3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user