mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
fix: websocket bug
This commit is contained in:
parent
6333dde87d
commit
f9d66ee2fc
@ -33,8 +33,8 @@ class InterfaceEdit extends Component {
|
||||
const { curdata, currProject } = this.props;
|
||||
this.state = {
|
||||
mockUrl: location.protocol + '//' + location.hostname + (location.port !== "" ? ":" + location.port : "") + `/mock/${currProject._id}${currProject.basepath}${curdata.path}`,
|
||||
curdata: {},
|
||||
status: 0
|
||||
curdata: this.props.curdata,
|
||||
status: 1
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user