mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
fix
This commit is contained in:
parent
6bffe1797a
commit
cd8b6b00f3
@ -220,8 +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 origin = location.origin
|
||||
const pathname = location.pathname
|
||||
const params = {
|
||||
title: interfaceName,
|
||||
path: url,
|
||||
@ -250,7 +250,8 @@ class AddInterface extends Component {
|
||||
this.changeState(true)
|
||||
// 初始化 mock
|
||||
this.mockData()
|
||||
// location.href = `${origin}${pathname}#/add-interface/edit/${interfaceId}`
|
||||
|
||||
location.href = `${origin}${pathname}#/project/${interfaceId}`
|
||||
})
|
||||
.catch(e => {
|
||||
console.log(e)
|
||||
|
Loading…
Reference in New Issue
Block a user