mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev
This commit is contained in:
commit
d21c38c0de
@ -116,6 +116,8 @@ export default class GroupList extends Component {
|
||||
await this.props.fetchGroupList();
|
||||
this.setState({groupList: this.props.groupList});
|
||||
this.props.setCurrGroup(res.data.data)
|
||||
}else{
|
||||
message.error(res.data.errmsg)
|
||||
}
|
||||
}
|
||||
@autobind
|
||||
|
@ -61,7 +61,8 @@ class InterfaceEdit extends Component {
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
let s = new WebSocket('ws://yapi.local.qunar.com:3000/api/interface/solve_conflict?id=' + this.props.match.params.actionId);
|
||||
let domain = location.hostname + (location.port !== "" ? ":" + location.port : "");
|
||||
let s = new WebSocket('ws://' + domain + '/api/interface/solve_conflict?id=' + this.props.match.params.actionId);
|
||||
s.onopen = () => {
|
||||
this.WebSocket = s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user