fix: websocket bug

This commit is contained in:
sean 2017-08-25 15:55:19 +08:00
parent 6333dde87d
commit f9d66ee2fc

View File

@ -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
}
}